-
Notifications
You must be signed in to change notification settings - Fork 158
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
[Feature Request] Add option to keep previous behavior of not keeping the focus on input after auto-hiding #47
Comments
Could you elaborate on your issues with the new behavior and the benefits of the old one? |
@mymth I like that the user is able to modify the date by typing in the field if they need to, but for my use case (selecting a shipping date in the near future), that should be a rare occurence. Keeping the field focused when the picker is no longer visible has two undesirable effects:
I would ask you the opposite question: what benefits does the new behavior have over the old one? Thank you for the excellent library. <3 |
The new behavior is the same as native form controls' (e.g. You probably think these aren't benefits. I can't fully disagree if you say so, to be honest. But to make the date picker behave as close to native elements as possible and consistently regardless of being operated by mouse or keyboard is one of the key concepts of this library and was the main focus of the update. One small benefit of the new behavior is user can also use the tab key to move to the next field. With the old behavior, the focus moves to The points you mentioned are the reason why the Anyway, I'd like to see if this feature request gets thumbs up from other people too. And if I decide to add this feature after having requests from a certain number of people, the option name will be like |
Thank you for the detailed answer @mymth, you make some great points and you have pretty much convinced me that this change is for the better. I may even keep |
From the CHANGELOG for version 1.1.0:
I much prefer the previous behavior of not keeping the focus. Could that be made configurable? I suggest a
blurOnHide
option.The text was updated successfully, but these errors were encountered: