Closed
Bug 1314542
Opened 8 years ago
Closed 8 years ago
[DateTimeInput] input field cleared unexpectedly when using up/down keys
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
RESOLVED
FIXED
mozilla52
Tracking | Status | |
---|---|---|
firefox52 | --- | fixed |
People
(Reporter: jessica, Assigned: jessica)
References
(Blocks 1 open bug)
Details
(Whiteboard: [datetime])
Attachments
(1 file, 1 obsolete file)
2.01 KB,
patch
|
mconley
:
review+
|
Details | Diff | Splinter Review |
When millisecond field is empty, using up/down keys in other fields will clear all the fields unexpectedly.
Assignee | ||
Comment 1•8 years ago
|
||
Updated•8 years ago
|
Whiteboard: [datetime]
Assignee | ||
Comment 2•8 years ago
|
||
Check for millisecond as well when setting input element's value, otherwise it will try to set input element's value to "hh:mm:ss." which is not a valid time string, hence value becomes empty string.
Attachment #8806641 -
Attachment is obsolete: true
Attachment #8807446 -
Flags: review?(mconley)
Comment 3•8 years ago
|
||
Comment on attachment 8807446 [details] [diff] [review] patch, v1. Review of attachment 8807446 [details] [diff] [review]: ----------------------------------------------------------------- Thanks! ::: toolkit/content/widgets/datetimebox.xml @@ +328,5 @@ > } else if (aTargetField == this.mMinuteField) { > value = now.getMinutes(); > } else if (aTargetField == this.mSecondField) { > value = now.getSeconds(); > + } else if (aTargetField == this.mMillisecField) { Gah! Good catch!
Attachment #8807446 -
Flags: review?(mconley) → review+
Assignee | ||
Comment 4•8 years ago
|
||
Thanks Mike! https://treeherder.mozilla.org/#/jobs?repo=try&revision=1bde90d0f871&group_state=expanded&selectedJob=30535188 failures seems not related to this bug.
Keywords: checkin-needed
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/eab190f5dc94 Verify millisecond field when setting input time elemet's value. r=mconley
Keywords: checkin-needed
Comment 6•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/eab190f5dc94
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
You need to log in
before you can comment on or make changes to this bug.
Description
•