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

Clicking on SVG in Menu doesn't work #1356

Open
gabro opened this issue May 30, 2019 · 0 comments
Open

Clicking on SVG in Menu doesn't work #1356

gabro opened this issue May 30, 2019 · 0 comments
Labels
bug bugs, defects, ... FE maint

Comments

@gabro
Copy link
Member

gabro commented May 30, 2019

2019-05-30 18 05 57

This is caused by the logic in popover that tried to detect whether a click outside the menu has happened.

What happens is:

  • click on the menu -> the menu open
  • the same click is deemed to be a click outside, because the parentElement of an svg element is always null -> the menu immediately closes

Possible workaround (implemented in GJ): use pointer-events: none an .user-menu > * so that only the click on the outermost container will have effect.

@gabro gabro added bug bugs, defects, ... FE maint labels May 30, 2019
@MatteoTurri MatteoTurri changed the title Clicking on SVG in UserMenu doesn't work Clicking on SVG in Menu doesn't work Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs, defects, ... FE maint
Projects
None yet
Development

No branches or pull requests

1 participant