Closed Bug 2043881 Opened 1 month ago Closed 1 month ago

Time picker opened with invalid value changes to another potentially invalid value

Categories

(Toolkit :: UI Widgets, defect, P3)

Firefox 153
defect

Tracking

()

RESOLVED FIXED
153 Branch
Tracking Status
firefox153 --- fixed

People

(Reporter: sam, Assigned: sam)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Currently, when the time picker is opened, and the current value is invalid, there is logic to instead select the first item in the picker. However, this does not consider the min value, meaning another potentially invalid time is being selected anyway. When the date picker is in this situation, it displays the closest valid month.

Currently, when the time picker is opened, and the current value is invalid, there is logic to instead select the first item in the picker. However, this does not consider the min value, meaning another potentially invalid time is being selected anyway. Selecting the minimum valid value instead provides a better experience, and setting it in timeKeeper instead avoids surprise scrolling animations when component state does not match timeKeeper state.

Assignee: nobody → sam
Status: NEW → ASSIGNED
Component: Layout: Form Controls → UI Widgets
Product: Core → Toolkit
Severity: -- → S3
Priority: -- → P3
Pushed by sam@scj.me: https://github.com/mozilla-firefox/firefox/commit/1db4a53974e5 https://hg.mozilla.org/integration/autoland/rev/16bc4e6a924f When opening time picker with invalid value, select lowest valid value instead of first item. r=jules
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch
QA Whiteboard: [qa-triage-done-c154/b153]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: