Skip to content

Conversation

satrapal
Copy link

Added e.stopPropagation() for .cbp-spmenu class. It's possible clicking inside menu without close them. Standard tags working differently and menu disappear when you press them.

Added e.stopPropagation() for .cbp-spmenu class. It's possible clicking inside menu without close them. Standard <a> tags working differently and menu disappear when you press them.
@Vilmorq
Copy link

Vilmorq commented Mar 23, 2016

Need a little fix for some logic.
Change string in //Close menu on clicking outside menu
jPushMenu.close(o);

on

if ($(e.target).closest(".menu-open").length) {
return;
} else {
jPushMenu.close(o);
}

plus add e in click-function

With
closeOnClickLink : false
u can make rly useful sidebar :) Just imho

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants