Skip to content

[Bug]: When picking a year using the date picker, the date picker navigates to year+1 #2739

@rjkip

Description

@rjkip

Vibe version

2.128.0 and later (2.*)

Describe the bug

When picking a year using the date picker, the date picker navigates to year+1

Reproduction example

❌ Behaviour >=2.128: https://stackblitz.com/edit/stackblitz-starters-letvxdyn?file=package.json,app%2Fpage.tsx
✅ Behaviour <2.128: https://stackblitz.com/edit/stackblitz-starters-omtwadkc?file=package.json,app%2Fpage.tsx

Steps to reproduce

  1. Navigate to December of any year
  2. Navigate to year selector
  3. Select any year

Expected

  1. User navigates to that year

Actual

  1. ❌ User navigates to year+1

Why is it important to me that this bug be fixed?

  1. I have some end-to-end tests running that rely on the correct year being selected in the date picker.
  2. Customers have complained.
  3. Upgrading to Vibe v3 which may or may not solve it is not a small effort.

System Info

Windows 11, NZ and US browser locales, Firefox 134.0.1, Chrome 131.0.6778.265
Package versions see reproduction examples

Additional context, Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions