t0gre / react-datepicker

An easily internationalizable, accessible, mobile-friendly datepicker library for the web, build with styled-components.
https://react-datepicker.netlify.com/
MIT License
331 stars 54 forks source link

Problem with arrow keys on latest version #146

Open coding-raccoon4 opened 1 year ago

coding-raccoon4 commented 1 year ago

@datepicker-react/hooks @datepicker-react/hooks@2.8.4

Describe the bug I'm currently using version 1.5.1 for a range datepicker and everything works fine, however, when I update the library to the latest version (or any after 2.0.0) the arrow keys functionality to navigate between days is not working as expected. (Gifs below)

Source code Sandbox with version 1.5.1: https://codesandbox.io/s/create-custom-react-date-picker-in-10-minutes-0knng?from-embed Sandbox with version 2.8.4: https://codesandbox.io/s/create-custom-react-date-picker-in-10-minutes-forked-rjwivs?

The only change between the two sandboxes is the version of this library

Screenshots/Gifs

Version 1.5.1 (Working as expected):

gif1

Version 2.8.4:

gif2

Desktop