Start a new discussion

To start a new discussion please visit the discussions section of the GitHub home page of the project.

Discussions on GitHub

You can also search our old self-hosted forums for any useful information below but please note that posting new content here is not possible any more.

Reply To: Prevent Pop-Up Menu from Immediately Hidding

Home Forums Older releases 1.0.x Prevent Pop-Up Menu from Immediately Hidding Reply To: Prevent Pop-Up Menu from Immediately Hidding

#3026
admin
Keymaster

You will need to stop the propagation of the click event for the target element that you use as a trigger for the popup – e.g. if you have a link like this:

<a href="#" id="show-main-menu">Show popup</a>

you would need to use something like this:

$('#show-main-menu').click(function(e) {
	toggledisplay();
	e.stopPropagation();
	e.preventDefault();
});