Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datepicker changes the selected date when browsing to a different month #831

Open
StefanBerger-DFINITY opened this issue Nov 21, 2024 · 1 comment

Comments

@StefanBerger-DFINITY
Copy link

  • Date field contains a specific date d
    image

  • open the datepicker: selected date is marked
    image

  • go to a different month, without selecting any explicit date:
    Now a new date gets selected automatically, with the same day-of-month and the currently visible month/year
    image

  • when you now close the datepicker, without selecting a date, this unintended new date gets applied
    image

Should

  • when you select a different month, no date in the picker should be selected without clicking the date directly.
    Interestingly, that's not the first datepicker I see doing that out-of-the-box.
@peterpeterparker
Copy link
Contributor

Thanks for the detailed tickets. Unfortunately, I don't think there's anything I can do. I'm using an <input type="date" onchange /> , so it's the browser that determines when and whether the onchange event should be fired.

I'll keep the issue open for a while in case I come up with something.

@peterpeterparker peterpeterparker changed the title [Bug] Datepicker changes the selected date when browsing to a different month Datepicker changes the selected date when browsing to a different month Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants