Setting the "onClick.close" option to "false" should do the trick:
$("#menu").mmenu({
onClick: {
close: false
}
});
Question
How can I prevent jquery-mmenu from closing itself on click of a menu element? I've tried intercepting the "closing" event, but the menu is already closed if I put a breakpoint in my handler... (and also even so "preventDefault()" doesn't seem to do anything).
Thanks!
Solution
Setting the "onClick.close" option to "false" should do the trick:
$("#menu").mmenu({
onClick: {
close: false
}
});