Unable to change the month in the Datepicker panel if there already is a date set
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
People
(Reporter: rdoghi, Assigned: ayeddi)
References
(Blocks 2 open bugs, Regression)
Details
(Keywords: regression)
Attachments
(4 files)
Found in
- Nightly 112.0a1 (2023-02-20)
Affected versions
- Beta 111.0b3
- Release 110
Affected platforms
- ALL
Steps to reproduce
- Reach data:text/html,<input type='datetime-local'>
- Open the Datepicker from the Calendar button and select any date.
- Reopen the Calendar button and use the arrow keys up or down in order to reach a different month.
- Use tab to reach the Top Arrows and select them using space in order to change the month.
Expected result
- The Month from the calendar panel should change using the Arrows at the top of the Calendar or when using the keyboard arrows.
Actual result
- Unable to change the months if the user already selected a date.
Regression range
15:07.80 INFO: Last good revision: ecda109fed990c5e8a581ef1d5992bb63a5be749
15:07.80 INFO: First bad revision: 672458dd68513bedba20944a5b4c30e99d0f641e
15:07.80 INFO: Pushlog:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=ecda109fed990c5e8a581ef1d5992bb63a5be749&tochange=672458dd68513bedba20944a5b4c30e99d0f641e
Reporter | ||
Comment 1•3 years ago
|
||
Hi Anna, it seems that Bug 1806823 is whats causing this issue, can you please take a look ?
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Comment 2•3 years ago
|
||
:ayeddi, since you are the author of the regressor, bug 1806823, could you take a look?
For more information, please visit auto_nag documentation.
Assignee | ||
Comment 3•3 years ago
|
||
Adding a test case
Assignee | ||
Comment 4•2 years ago
|
||
I tried to poke around but couldn't find an apparent issue, so I will work on this bug when I'm back from the leave
Updated•2 years ago
|
Assignee | ||
Comment 5•2 years ago
|
||
As we want to keep communicating to the parent that the date picker is changed even when a calendar is updated without any new selection, but we want to keep the current selection and the input value until the user changes the selection, the new flag would communicate to the parent that there is no need to update a selection for a date picker on <input type=datetime-local>
and <input type=date>
. In the future it will be possible to be used by a time picker on <input type=time>
as well, if needed.
TODO: Add tests
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Comment 6•2 years ago
|
||
With the Next/Prev button keyboard navigation being fixed in the previous patch (D177550), running datepicker tests with --verify
discovered an intermittent toolkit/content/tests/browser/datetime/browser_datetime_datepicker.js
failure likely due to the fast speed of the picker re-rendering while machine tested that took minor improvements to have extra state checks to resolve it.
Depends on D177550
Updated•2 years ago
|
Comment 8•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/05dde90fd243
https://hg.mozilla.org/mozilla-central/rev/76d6593441da
Reporter | ||
Comment 9•2 years ago
|
||
This issue is verified as fixed in our latest Nightly build 115.0a1 (2023-05-21). I will update the flags for beta and release.
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Description
•