date-picker icon indicating copy to clipboard operation
date-picker copied to clipboard

Auto-open on input focus

Open mrleblanc101 opened this issue 4 years ago • 1 comments

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.

mrleblanc101 avatar Jul 16 '21 15:07 mrleblanc101

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!

rdebeasi avatar Jul 26 '22 14:07 rdebeasi