react-datepicker
react-datepicker copied to clipboard
Accessibility issue - when date picker closes focus does not return on input
Describe the bug
When date picker closes pressing Escape or when shouldCloseOnSelect property is passed, focus does not return on input
To Reproduce Steps to reproduce the behavior:
- Go to (https://reactdatepicker.com/#example-open-to-date)
- On the first default example add
shouldCloseOnSelectproperty for<DatePicker /> - Open date picker and select a date or press
Escape - See that focus does not return on input.
Expected behavior After close focus suppose to go on input.
Screenshots If applicable, add screenshots to help explain your problem.
https://user-images.githubusercontent.com/49157108/169313648-05350b56-317a-4043-a3d3-34980fe5c937.mov