nrkno / core-components

Accessible and lightweight Javascript components
https://static.nrk.no/core-components/latest/
MIT License
117 stars 10 forks source link

core-datepicker: Step by year with disabled dates does not always work #672

Closed skjalgepalg closed 7 months ago

skjalgepalg commented 1 year ago

Relates to #386 and #319

If entirety of December 2023 is disabled, but jan-nov 2023 is available, a core-datepicker set to any day in December 2022 will deem the year 2023 as disabled. But if it is set to any day in jan-nov 2022, the year 2023 is not disabled

Should we handle this in the same way as we do months?

Do we have any use-cases to help us shape a solution for a good user experience?