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

Open/close picker when input is focused/blurred #38

Open
billdami opened this issue Jun 15, 2019 · 0 comments
Open

Open/close picker when input is focused/blurred #38

billdami opened this issue Jun 15, 2019 · 0 comments

Comments

@billdami
Copy link

I'm looking to more closely mimic the behavior of the PIkaday picker (i.e. like the one in this demo: https://pikaday.com/) where the picker calendar will open when the input is focused by tabbing into the field, and the closed when the input field loses focus via tabbing away (while still maintaining the ability to open/close it via clicking the input/clicking elsewhere).

Is there a existing pattern for accomplishing this? Trying something like a simple onfocus={{dp.actions.open}} action on the input seems to conflict with the ability to close on selection, as the input regains focus after selecting.

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

1 participant