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

Fix close Filter by Label menu when click outside menu #582

Open
amontalvof opened this issue Jul 28, 2022 · 0 comments
Open

Fix close Filter by Label menu when click outside menu #582

amontalvof opened this issue Jul 28, 2022 · 0 comments
Assignees

Comments

@amontalvof
Copy link
Contributor

A possible solution is to use the useOutsideClick hook but there is a problem with the picklist inside this menu. The picklist opens a second menu that is created in the DOM as a brother of the first. So when you click on the second menu the app crashes because you closed the first one. It would be necessary to make another arrangement first in the menus that use createPortal of React and tell them the children of which DOM element they would be.

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