juno icon indicating copy to clipboard operation
juno copied to clipboard

Datepicker changes the selected date when browsing to a different month

Open StefanBerger-DFINITY opened this issue 1 year ago • 1 comments

  • 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.

StefanBerger-DFINITY avatar Nov 21 '24 09:11 StefanBerger-DFINITY

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 avatar Nov 21 '24 12:11 peterpeterparker