DateRangePicker/SingleDatePicker should close on Escape Keypress
See original GitHub issueSo I think this can be discussed, but it seems to make sense for the DayPicker
to hide on escape press. However, DayPicker
visibility is intrinsically tied to focus right now which is maybe not what we want.
So one option we could do is just to blur the input on escape. The better option, I think, would be to decouple visibility from focus, such that the focus state remains when you hit escape, but the DayPicker
would close. This begs the question of how you would reopen it from this state… arrow down maybe? I am not sure right now.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:5
- Comments:6 (1 by maintainers)
Top Results From Across the Web
DateRangePicker/SingleDatePicker should close on ...
The better option, I think, would be to decouple visibility from focus, such that the focus state remains when you hit escape, but...
Read more >Close angular datepicker on escape
I'm using angular-datepicker in my angular App. it works perfectly fine but I'm trying to close it on escape key press but unable...
Read more >How to trap ESC key in DateTimePicker's drop down calendar?
I need to trap the Escape key to revert the datepicker's value to ... DateTimePicker has three keyboard events KeyDown, KeyUp and KeyPress....
Read more >Date and Time Selector | Commerce Admin Development
Single Date Picker ... The Date/Time widget should animate down and be displayed ... Esc closes a DatePicker that is opened as a...
Read more >Date Range Picker — JavaScript Date & Time Picker Library
To get started, include jQuery, Moment.js and Date Range Picker's files in ... The start and end dates provided to your callback will...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
How can we close the SingleDateSelector programmatically?
Actually I’m going to reopen this as it doesn’t seem to be working.