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

UserDropdown do not close when clicking outside on empty areas #23

Open
samuelpares opened this issue Sep 18, 2024 · 1 comment
Open

Comments

@samuelpares
Copy link

Hello,

I'm experiencing an issue with the dropdown components in this project where they do not close when I click outside of them on empty areas of the page. The dropdowns only close if I click on other interactive elements like inputs or buttons, but remain open when clicking on blank spaces.

Steps to Reproduce:
Navigate to a page containing a dropdown component (UserDropdown component uses it).
Click on the dropdown to open it.
Click on an empty area of the page (not on any interactive elements).
Observe that the dropdown does not close.

Expected Behavior:
The dropdown should close when clicking anywhere outside of it, including empty areas of the page.

Actual Behavior:
The dropdown remains open when clicking on empty areas. It only closes when clicking on other interactive elements like inputs or buttons.

@WatanabeThiago
Copy link

why you don't fix that?

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