Closed
Bug 2043938
Opened 1 month ago
Closed 1 month ago
Time picker does not handle a valid range that crosses midnight for <input type="time">
Categories
(Toolkit :: UI Widgets, defect, P3)
Tracking
()
RESOLVED
FIXED
153 Branch
| Tracking | Status | |
|---|---|---|
| firefox153 | --- | fixed |
People
(Reporter: sam, Assigned: sam)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Per MDN:
By setting a min attribute greater than the max attribute, the valid time range will wrap around midnight to produce a valid time range. This functionality is not supported by any other input types.
The input itself handles this correctly already, but the time picker does not, and currently will show no valid times.
| Assignee | ||
Comment 1•1 month ago
|
||
For <input type="time">, the min can be set to greater than the max to create a valid time range that crosses midnight. While the input itself handles this correctly already, the time picker did not, which this patch fixes.
Updated•1 month ago
|
Assignee: nobody → sam
Status: NEW → ASSIGNED
| Assignee | ||
Updated•1 month ago
|
Blocks: datetime-bugs, 1726107
Updated•1 month ago
|
Component: Layout: Form Controls → UI Widgets
Product: Core → Toolkit
Updated•1 month ago
|
Severity: -- → S3
Priority: -- → P3
Pushed by sam@scj.me:
https://github.com/mozilla-firefox/firefox/commit/c98d6e2ca9fb
https://hg.mozilla.org/integration/autoland/rev/5fda09b4721b
Handle time ranges that cross midnight in time picker for <input type="time">. r=akulyk
Comment 3•1 month ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch
Updated•20 days ago
|
QA Whiteboard: [qa-triage-done-c154/b153]
You need to log in
before you can comment on or make changes to this bug.
Description
•