gravity-ui / date-components

MIT License
6 stars 3 forks source link

Click on input doesn't trigger the datepicker to open after the first date selection #100

Closed ldrv565 closed 2 days ago

ldrv565 commented 4 days ago

How to reproduce:

1) click on input 2) select day in opened datepicker 3) click on input again 4) datepicker doesn't opened

https://preview.gravity-ui.com/date-components/?path=/story/components-datepicker--controlled-open-state

ValeraS commented 4 days ago

This story shows how to use controlled open state. If the logic in the example does not fit, you can write your own.

But current behavior seems correct. If the user intentionally closes the popup (via Esc) then open it on click on input may be annoying. User can open popup with click on button or with keyboard (Alt + Arrow Down).