The default bug view has changed. See this FAQ.

timepicker reports incorrect value when changed by keyboard instead of mouse

UNCONFIRMED
Unassigned

Status

()

Core
XP Toolkit/Widgets: XUL
UNCONFIRMED
5 years ago
4 years ago

People

(Reporter: Jonathan Kamens, Unassigned)

Tracking

Trunk
x86_64
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

5 years ago
Create a timepicker with an onchange event handler associated with it. In the event handler, log the .value of the timepicker.

Change the value of the timepicker using the mouse. Note how .value is correct.

Now change the value of the timepicker by highlighting the hours field, typing a new value, and hitting tab. Note how the event handler is called, but the value that is reported is the old value, not the new one.

In short, when the value of a timepicker is changed with the keyboard, it reports its own value incorrectly.

This seems like a pretty darn big bug.
(Reporter)

Comment 1

5 years ago
This appears to have been discussed as an issue in need of a fix over two years ago:

https://groups.google.com/d/topic/mozilla.dev.tech.xul/lOvK6bAwVoI/discussion
Status: NEW → UNCONFIRMED
Ever confirmed: false
(Reporter)

Comment 2

5 years ago
This problem applies to datepicker as well as timepicker.
You need to log in before you can comment on or make changes to this bug.