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

Year input value changes unexpectedly on pressing Enter.

Open minamz opened this issue 9 months ago • 0 comments

This is happening with datepickers we use with locale: Japanese, and using dateFormat "Y年m月d日". We are continuing investigation to find if issue is on our side but not yet found the reason.

To reproduce

  • open datepicker and change MONTH dropdown ; select any other MONTH (other than January)
  • hit Enter
  • the YEAR changes to an unexpected value.

Basically anytime a MONTH is selected and press Enter, the year input value changes to undesired values; with the exception of January (which doesn't reproduce the behavior.)

Please see below animation: flatpickerYearWeird

Also noticed the pattern January -> no change of year Feb -> year changes to 1901 March -> 1902 April -> 1903 May -> 1904 etc.

minamz avatar May 01 '24 02:05 minamz