weightless
weightless copied to clipboard
In Firefox, oninput doesn't work on wl-slider.
If you attach an event handler to wl-slider
for the input
event in Firefox (67.0.4), nothing happens when changing the slider.
This works as expected when tested in Chrome. I did check and the underlying input does fire the event when tested in Firefox.
Edit: Still true as of Firefox 71.
Example: https://jsfiddle.net/mL95stg6/ works in Chrome, not in Firefox.
I took a deeper look, and it looks like Firefox sets composed
to false
for input
events when an input
has type
range
. I have raised a bug, as this seems at odds with other implementations and what I can see of specs out there.
For compatibility, it would still be nice to have the slider re-dispatch events (as with the invalid event, for example).
This is fixed in the browser as of Firefox 72, but in terms of legacy-support this issue stands.