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!

Was it helpful?

Solution

Setting the "onClick.close" option to "false" should do the trick:

$("#menu").mmenu({
    onClick: {
        close: false
    }
});
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top