ember-power-datepicker icon indicating copy to clipboard operation
ember-power-datepicker copied to clipboard

Open/close picker when input is focused/blurred

Open billdami opened this issue 5 years ago • 0 comments

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.

billdami avatar Jun 15 '19 13:06 billdami