-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
oninput and onchange do not work on second handle #19
Comments
I have the same problem. Any workarounds? |
Since WHATWG has abandoned the proposal for a The problem is that when you add an event listener to your function handleChange() {
console.log('Range is %s to %s', this.valueLow, this.valueHigh);
}
const input = document.querySelector('input[type=range]');
input.addEventListener('input', handleChange);
input.nextElementSibling.addEventListener('input', handleChange.bind(input)); You can see it in action in this Stack Overflow answer. You must ensure that this code runs after multiselect loads, since it depends on |
Hello, To trigger events on both sliders: first slider Id= ranger@filter@dates |
I fixed this by making the ghost change event trigger change on the original: jQuery example but the same should be possible in pure JS:
|
Is there a way around this? the events only fire when I move the first handle
The text was updated successfully, but these errors were encountered: