Question
Menu does not close when clicking else where
- February 8, 2016
- 1 reply
- 1652 views
I am using Menu widget to show couple of help links. The menu icon is hat and when its clicked the menu dropdown is opened and there are two options displayed vertically like Admin Help and User Help. See the attachment. This behaviour is achieved through sub menu within main menu.
But the problem is if the menu is clicked and drop down opens, and if user clicked anywhere else on the page, the menu drop down does not close and remains open until the the menu icon is clicked again. This Menu widget does not expose any events to collapse or expand. Can someone please let me know how to auto-close menu drop down when user clicks anywhere else on the page.

