react-datepicker icon indicating copy to clipboard operation
react-datepicker copied to clipboard

Accessibility issue - when date picker closes focus does not return on input

Open TautvydasPetrauskas opened this issue 3 years ago • 0 comments

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:

  1. Go to (https://reactdatepicker.com/#example-open-to-date)
  2. On the first default example add shouldCloseOnSelect property for <DatePicker />
  3. Open date picker and select a date or press Escape
  4. 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

TautvydasPetrauskas avatar May 19 '22 14:05 TautvydasPetrauskas