Auto-close on mobile nav when route selected #1094
Replies: 3 comments 3 replies
-
I +1 this. When using the Navbar.Collapse view the dropdown should be closed upon the user making a selection, or as @pkennedytx1 mentioned, have a prop so that its behavior can be controlled. Using this Navbar with a mobile phone makes it hard for the user to even tell that their click worked because the dropdown is covering the page. I could see a user getting frustrated and thinking the website does not work. Best case scenario the user has to do unnecessary clicks to close the menu themselves. |
Beta Was this translation helpful? Give feedback.
-
@pkennedytx1 @Kismet333, is there any update about this fix or how can this be solved? |
Beta Was this translation helpful? Give feedback.
-
I figured out a dirty solution as well:
You can use the Javascript listener to capture the touch event and the push the user to the correct route. |
Beta Was this translation helpful? Give feedback.
-
The mobile nav should have a prop that allows the nav to be close when a route is selected, it results in extra clicks for a user and disrupts the flow. I would imagine this as being a prop passed to Navbar.Collapse since the direct children would be the ones that the component would be listening to. I have worked around this by creating a simulated click to press the toggle after select.
Beta Was this translation helpful? Give feedback.
All reactions