Open Bug 890710 Opened 11 years ago Updated 2 years ago

input of type=range doesn't fire "change" event when it's clicked and gains focus

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

x86
macOS
defect

Tracking

()

People

(Reporter: ggp, Unassigned)

Details

Attachments

(1 file)

Attached file example
An input element of type range doesn't fire the "change" event when it is modified by clicking the track while it's unfocused.

This can be reproduced by opening the attachment and clicking the track of the range input anywhere -- no event is fired, but the element gets focused. Clicking the track again anywhere else causes the event to be fired. Contrast this with the checkbox, which does fire the event (and also gains focus) when clicked while unfocused.
Confirmed that this also applies to Windows 8.
Adding focus handlers will cause those events to fire, but not the change ones. I can work on this.
Never mind, I'm too busy.
Also happens on Ubuntu 13.04.
Also happens on OSX 10.8.4

I made a jsfiddle that shows the issue: http://jsfiddle.net/JASyr/1/
This might be loosely related: the (jQuery) change event is not fired when the range's value is changed using the keyboard right and left arrows, in Windows 7.
Reported 7 months ago and no update?
Seems to be fixed in FF 51 on Windows 10 64 Bit.
Component: Event Handling → User events and focus handling
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: