weightless icon indicating copy to clipboard operation
weightless copied to clipboard

In Firefox, oninput doesn't work on wl-slider.

Open Lattyware opened this issue 5 years ago • 1 comments

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).

Lattyware avatar Jun 29 '19 21:06 Lattyware

This is fixed in the browser as of Firefox 72, but in terms of legacy-support this issue stands.

Lattyware avatar Jan 09 '20 11:01 Lattyware