You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I create a menu which has a submenu with two items.When I trigger one of items in submenus,the onItem in the option of contextmenu will be called twice.
Follow is my code.
<!-- menu --><divid="context-menu"><ulclass="dropdown-menu multi-level" role="menu"><liclass="dropdown-submenu"><ahref="javascript:;">item</a><ulclass="dropdown-menu"><li><ahref="javascript:;">subitem1</a></li><li><ahref="javascript:;">subitem2</a></li></ul></li></ul></div>
ive been playing around with this and cannot get it to termininate gracefully. if I just use the closemenu command it throws an error saying "e" is not valid.
The reason it is happening on sub items is that its propogating up the menu tree and fires for all the parent li tags.
would be good if there was a way to tag an item as a parent as usually you dont want anything to happen when you click this item, its sole purpose is to display the submenu where all the active items are.
I create a menu which has a submenu with two items.When I trigger one of items in submenus,the onItem in the option of contextmenu will be called twice.
Follow is my code.
By the way,if I add "this.closemenu()" to the end of onItem,it will stop the second time calls.
The text was updated successfully, but these errors were encountered: