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

Search date by keyboard typing does not work v8

Open alimemzpragma opened this issue 10 months ago • 1 comments

Describe the bug In previous versions when we used keyboard to type a partial date in the input, the datepicker used to perfectly navigate through the calendar. For example typing 2014 resulted to dropdown calendar to jump to year 2014, making date selection easier. But this behavior is broken in v8.

To Reproduce Please check this codesandbox. https://codesandbox.io/p/devbox/mxmcyy

Expected behavior Able to searching through dropdown calendar by typing partial date.

Screenshots

Image

Desktop (please complete the following information):

  • OS: Ubuntu 22
  • Browser Chrome
  • Version 133.0.6943.98

alimemzpragma avatar Feb 27 '25 12:02 alimemzpragma

Thanks for reporting this issue @alimemzpragma. I've also noticed this upon upgrade from v7.5.0 to v.8.3.0.

I just wanted to mention that you may want to change the title to refer to v8.x so it is not confused with the Chrome Engine "V8".

As for the react-datepicker team, what is your expectation for this feature going forward? It'd be great to see this functionality restored if you consider this a bug.

labkey-nicka avatar Apr 15 '25 00:04 labkey-nicka

We're also running into this issue. One thing we noticed is that if we add format(s), it will behave correctly for the partial date formats but that doesn't seem reasonable to add all formats that the user can type for every instance. We can see the relevant changes for this from 7.6.0 to 8.0.0 here: https://github.com/Hacker0x01/react-datepicker/compare/v7.6.0...v8.0.0#diff-4a995d09660b3ce231c42bbd7f9073b938a2068ffb56f71f9d54683cb3c2f702L140

We would love to upgrade to the latest version v8.x but this is a blocker for us.

jonshuang avatar Aug 28 '25 19:08 jonshuang