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

Submenu clickable when closed #221

Closed
hw-df opened this issue Sep 2, 2022 · 0 comments · Fixed by #222
Closed

Submenu clickable when closed #221

hw-df opened this issue Sep 2, 2022 · 0 comments · Fixed by #222

Comments

@hw-df
Copy link
Contributor

hw-df commented Sep 2, 2022

After clicking on a submenu item, the item stays clickable as long as you hover over it´s position.

Testcase: https://jsfiddle.net/k3hmdo6n/

What to do:
click on "Add a marker" in "Some actions" submenu. Click on the same position (don't move mouse) after contextmenu has closed.

What I expect:
Nothing should happen. No new marker should be added.

What happens:
Another marker was added. See console output.

After clicking a submenu item the contextmenu closes by hiding itself in CSS (opacity: 0; visibility hidden;). But if the mouse stays in the contextmenu area a hover rule prevents the "visibility:hidden" for the submenu. It is invisible due to the opacity of the parent, but still clickable. Opacity cannot be overridden by a child.

I could provide a solution via PR.

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 a pull request may close this issue.

1 participant