date-picker
date-picker copied to clipboard
Auto-open on input focus
Is your feature request related to a problem? Please describe. Should there be a built-in way to open the calendar picker on input focus instead of requiring to press a separate button ?
Describe the solution you'd like Adding an option to auto-open the date-picker
Describe alternatives you've considered
I could probably call the .show() method manually.
I'm looking for something similar! I've tried calling .show() when the input is focused, but I found that doing so moves the focus to the calendar. That shift makes it cumbersome for users to type in a date.
This focus shift is included as part of the show() method, so there's currently no way to override this behavior. I'd love to be able to disable the focus shift like this:
myDatePicker.show({
shiftFocus: false
});
Would a PR for such a feature be helpful? Thanks!