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

handleClickOutside doesn't work when providing own input element #40

Open
carstenblt opened this issue Sep 4, 2023 · 3 comments
Open

Comments

@carstenblt
Copy link

handleClickOutside relies on refs to the input element and the picker modal, which are not available when using an individual input element.

@GinaBiondo-aperto
Copy link

You could add a blur listener to set the "show" state to false as a workaround here, I guess. Hope this helps :)

@szpada87
Copy link

szpada87 commented Feb 6, 2024

@carstenblt I've created a PR to pass inputRef with options: #53

@tgnhrkn
Copy link

tgnhrkn commented Mar 13, 2024

You could add a blur listener to set the "show" state to false as a workaround

I tried this but that made the picker disappear before a value is chosen

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

4 participants