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

Close dropdown when clicking outside #210

Open
Dramex opened this issue Apr 22, 2022 · 2 comments
Open

Close dropdown when clicking outside #210

Dramex opened this issue Apr 22, 2022 · 2 comments

Comments

@Dramex
Copy link

Dramex commented Apr 22, 2022

Hey,

is there an easy prop that triggered with clicking outside the dropdown ?

Thanks

@lucis
Copy link

lucis commented Apr 28, 2022

Use Dropdown's onVisibleChange. It'll detect outside clicks and send it to your function. Refer to docs.

@Dramex
Copy link
Author

Dramex commented Apr 28, 2022

Use Dropdown's onVisibleChange. It'll detect outside clicks and send it to your function. Refer to docs.

this only fires when visible is changed, not with outside clicks

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