react-flatpickr
react-flatpickr copied to clipboard
Year input value changes unexpectedly on pressing Enter.
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:
Also noticed the pattern January -> no change of year Feb -> year changes to 1901 March -> 1902 April -> 1903 May -> 1904 etc.