seb-oss / green

Green is an open-source design system built by SEB.
https://storybook.seb.io/
Apache License 2.0
31 stars 43 forks source link

Datepicker: year loops around #1442

Open arekon7 opened 2 weeks ago

arekon7 commented 2 weeks ago

Bug already reported?

For which framework/library you are reporting the bug

Angular

Component name

Datepicker

Description

Datepicker calendar "year" loops around. When navigating with "next" button till next year, it shows "1924" as a next year.

Please check video: Dp-year-issue.webm

Steps To Reproduce

Steps to reproduce were written on 2024-06-14:

  1. Go to https://storybook.seb.io/latest/angular/?path=/docs/components-datepicker--documentation#datepickeroptions page
  2. Open datepicker "Birthday"
  3. Using "Next" arrow navigate through months till the next year

Current Behaviour

Next year is shown as 1924 (first option form the years list)

Expected Behaviour

Disabled over looping to the first year option from list.