Skip to content

Date picker: Selecting day in next month fails sometimes #2247

@Blackwidow-sudo

Description

@Blackwidow-sudo

Describe the bug

This seems to be another firefox specific issue.

Sometimes when i click on a day in the next month, the value of the DatePicker isn't updated. Inspecting the value shows that there are 2 updates: first the date gets correctly set, then it gets set to undefined.

Maybe it has something todo with the mouse event issues i reported here

DatePicker2.mp4

Reproduction

You can reproduce it with this repo (atleast in Firefox).
It might take a while to reproduce it. I couldn't figure out what conditions reproduce it a 100%.

Logs

update Object { calendar: {…}, era: "AD", year: 2025, month: 8, day: 3 }
update undefined

System Info

Browser:
   Firefox 140.0.1 (64-Bit)

 System:
    OS: Linux 6.6 Ubuntu 24.04.2 LTS 24.04.2 LTS (Noble Numbat)
    CPU: (16) x64 AMD Ryzen 7 7700X 8-Core Processor
    Memory: 9.89 GB / 15.17 GB
    Container: Yes
    Shell: 5.2.21 - /bin/bash
  Binaries:
    Node: 22.17.1 - ~/.local/share/pnpm/node
    npm: 10.9.2 - ~/.local/share/pnpm/npm
    pnpm: 10.13.1 - ~/.local/share/pnpm/pnpm
  npmPackages:
    @lucide/svelte: ^0.515.0 => 0.515.0 
    @sveltejs/kit: ^2.22.0 => 2.26.1 
    bits-ui: ^2.9.0 => 2.9.0 
    svelte: ^5.0.0 => 5.37.1 
    tailwindcss: ^4.0.0 => 4.1.11

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageThe issue is pending triage by a maintainer.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions