Currently when we have date picker with type = date and switch the panel mode selection through the popup to month and then year and then select an year from that picker to narrow down the date selection, triggerCalendarChange function is called, even though the picker mode is date, which causes the date associated with the year(01-01-year) to be auto-selected and shown in the input. There is also a comment on triggerCalendarChange, which says // Only trigger calendar event but not update internal calendarValue state, but triggerCalendarChange does update the calendarValue internally in useInnerValue hook line 147 - setCalendarValue(clone);,.
Using the multiple storybook where we have date picker and navigating to decade panel and selecting 2000-2009, causes value 2000-04-08 to be auto-selected as first multiples value


I've also open a PR with possible way of fixing the issue and test that can simulate it in master #788
Currently when we have date picker with type =
dateand switch the panel mode selection through the popup tomonthand thenyearand then select anyearfrom that picker to narrow down the date selection,triggerCalendarChangefunction is called, even though the picker mode isdate, which causes the date associated with the year(01-01-year) to be auto-selected and shown in the input. There is also a comment ontriggerCalendarChange, which says// Only trigger calendar event but not update internalcalendarValuestate, but triggerCalendarChange does update thecalendarValueinternally in useInnerValue hook line 147 -setCalendarValue(clone);,.Using the


multiplestorybook where we have date picker and navigating to decade panel and selecting 2000-2009, causes value 2000-04-08 to be auto-selected as first multiples valueI've also open a PR with possible way of fixing the issue and test that can simulate it in master #788