Closed ekiruluta closed 10 years ago
Try handling the event in the anchor instead of the list element.
On Aug 24, 2013, at 1:33 AM, ekiruluta notifications@github.com wrote:
I implemented the dropdown as a button. When I click the button the menu displays correctly but when I select a menu item the dropdown does not go away. What am I missing?
Here is the example code:
Setting up drop down menu...
Activating drop down menu using a button...
<button name=\"menuOps\" data-dropdown=\"#dropdown-1\" />Menu Options — Reply to this email directly or view it on GitHub.
The solution I found was to call the hide (hide the dropdown) method in my Javascript handlers.
I implemented the dropdown as a button. When I click the button the menu displays correctly but when I select a menu item the dropdown does not go away. What am I missing?
Here is the example code:
Setting up drop down menu...
Activating drop down menu using a button...