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

Simulate click on the element if the menu already open #343

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nextend
Copy link

@nextend nextend commented Jan 21, 2016

User opens the menu with right click, then he right click again on a different part, contextMenu should inform that "clicked, but hidden by $layer" element about the click event.

In our system, we have one main contextMenu and our system contains an active item which can be selected by click. If this event not triggered, then the second right click not able to change the active item to the clicked one.

User opens the menu with right click, then he right click again on a different part, contextMenu should inform that "clicked, but hidden by $layer" element about the click event. 

In our system, we have one main contextMenu and our system contains an active item which can be selected by click. If this event not triggered, then the second right click not able to change the active item to the clicked one.
@bbrala
Copy link
Member

bbrala commented Jan 25, 2016

Thanks for the contribution. I looked through the code, and this would trigger mouse events that might have been bound with jQuery. I'm thinking this might result in also triggering the target element for the menu.

So there might need to be a check around that, i need to have a closer look to be sure.

@nextend
Copy link
Author

nextend commented Jan 25, 2016

Maybe it could be added as an option, so it wouldn't break the original code, but the improvement would be available in the future.

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