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: 'Last available date' and 'Today' buttons inconsistency #1418

Closed arekon7 closed 2 weeks ago

arekon7 commented 1 month ago

Bug already reported?

For which framework/library you are reporting the bug

Angular

Component name

Datepicker

Description

Hello, noticed inconsistent behavior of 'Last available date' and 'Today' buttons in Datepicker calendar. Some times when pressing 'Last available date' button whole Datepicker modal closes, sometimes just redirects to last available date in calendar, but not closes. Date itself getting selected correctly, it's just Datepicker calendar modal closes or not depending on month which you pressing 'Last available date' buttons from. Same with 'Today' button but opposite direction.
Please check attached video and screenshots.

Steps To Reproduce

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

  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 to month "September"
  4. Press "Last available date"
  5. Result: modal got closed
  6. Repeat steps 2-4, but navigate to month "August"
  7. Press "Last available date"
  8. Result: modal NOT closed
  9. Same will be with "Today" button only you need to navigate back to months: "October" and "March"

Current Behaviour

Inconsistency for modal closing for different months

Expected Behaviour

Consistency for modal closing for all months

arekon7 commented 1 month ago

Video and screenshots: ice_video_20240603-151935.webm ice_screenshot_20240603-152900 ice_screenshot_20240603-152932

arekon7 commented 2 weeks ago

Hello, still experiencing same issue. Date picker modal closing for some months after pressing "Today" or "Last available date".

Check video gif attached: DP-issue-closing-modal