Close Sub-Menu after click anywhere

14-May-2016 19:28:05

Hi, i want to close the sub-menu if the user clicks anywhere on the screen (not on a menu item). How can i do that?

Thanks for help.

By the way, in the distribution file is an error. There is a semicolon missing after the definition of a variable.

var $viewWidth

This has cost me 5 hours of trying to understand why the sub.menus are displayed wrong all the time.


15-May-2016 05:23:50


At this time, the sub menu is closed by the closed menu item only. I will consider to add this feature in next update.

I have just checked the download file but the source code is fine. Could you tell me which line you get the error?