Skip to content

Mobile sidebar link click should close the sidebar #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 17, 2018

Conversation

joefresco
Copy link
Contributor

When a mobile user clicks a link in the sidebar, it should close that sidebar for mobile users.
The reason is that the "default" mobile experience ought to be menu-less or content will flow off the screen.

When a mobile user clicks a link in the sidebar, it should close that sidebar for mobile users.
The reason is that the "default" mobile experience ought to be menu-less or content will flow off the screen.
@PewQuadrat
Copy link

PewQuadrat commented Jan 4, 2018

Hi,

in your solution the sidebar is only closing if the user press exactly on the link, but not if the user clicks on the nav-item.

Here your method inside the SidebarNavItem.vue (Version 1.0.6)

Sorry, currently I don't know how to create a pull request

https://gist.github.com/PewQuadrat/a953b6bf3b3bd8715223594717b02aaf

@xidedix xidedix merged commit 6315b5e into coreui:master Jan 17, 2018
woothu pushed a commit that referenced this pull request Nov 23, 2018
Mobile sidebar link click should close the sidebar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants