Skip to content

Problem with arrow keys on latest version #146

@coding-raccoon4

Description

@coding-raccoon4

@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

  • OS: Windows 10
  • Browser: Chrome
  • Version: 107.0.5304.107

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions