Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not working correctly on chrome #4

Closed
vedantsali opened this issue Jun 2, 2015 · 2 comments
Closed

not working correctly on chrome #4

vedantsali opened this issue Jun 2, 2015 · 2 comments

Comments

@vedantsali
Copy link

capture
i m using this directive, it works fine in firefox but is not closing the old context when right-clicking on other context in chrome. Any suggestion or update?

@amarpreethora
Copy link

As a temporary solution just use the mouseup event instead of click event to close the previous menu.

$(document).mouseup(function(event) {
var target = $(event.target);
if (!target.is(".popover") && !target.parents().is(".popover")) {
if (last === event.timeStamp)
return;
ul.css({
'display': 'none'
});
}
});

@vedantsali
Copy link
Author

worked for me :) thanx alot amar

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

No branches or pull requests

2 participants