Closed ninio closed 11 years ago
I have'nt been able to use this for more than one contextmenu. Thanks for the patch.
No problem! This library is a really nice idea! :+1:
Hi, I made some major changes in the 2.0 branch. Hoping you could give it a try. Most of the change was on the closing of context menus. Clicking on an item on a context menu will now prevent other opened context menus from closing.
I'll test it and will let you know :)
Added a _context_this_ref in the data of the shown context menu to call only the onItem callback function that is initialized for this istance of the contextmenu.
This was causing a problem if you initialize multiple times the Contextmenu and all of them use same dropdown element. In this case each onItem is called instead of only the one that was initialized for the specific element/selector.