In a bootstrap navigation bar, I have a dropdown menu.
On smaller screen, the navigationbar is collapsed, and I get a button to toggle the visibility of the navigation bar items.
Since the only item that I have, is the dropdown menu, I feel it a little 'stupid' to have to first click to toggle the navigation visibility, and then click to drop down the menu.
I can see that what actually triggers the dropdown is the adding of class open to the dropdown menu - just like in seems to triggers the visibility of the collapsed navigation bar.
But how can I make the dropdown 'auto-dropdown' when the collapsed navigation bar is displayed?
A small fiddle to illustrate: http://ift.tt/1Kq9Z76
Aucun commentaire:
Enregistrer un commentaire