-
Notifications
You must be signed in to change notification settings - Fork 47.1k
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
input type=range onChange should fire when changing the value using the keyboard arrow keys #554
Comments
Chrome doesn't fire the |
Chrome fires a 'change' event when you change it with keyboard. Possible to use 'change' instead of input? |
In Chrome beta and Firefox, 'change' doesn't fire when dragging until mouseup so we should listen to input here too. |
I made a JSFiddle to test this: http://jsfiddle.net/vqnMU/embedded/result/ React seems to be listening for Focusing the slider and pressing right:
* Firefox triggers Additionally for dragging:
* These browsers all trigger Editing ChangeEventPlugin to listen for change events on all input types (35e7aa4) appears to fix React's change & input event handling for all of the above browsers. Should I make a pull request, or is there a reason that the plugin was only listening for |
I just ran into this problem when trying to port a widget I have to React. |
@locks I would recommend implementing your own, it seems like all the HTML input elements come with a bunch of inconsistencies that can be hard to normalize and are basically unstyle:able. |
@syranide I think we should attempt to support all the built-in inputs at least mostly-reasonably. |
@spicyj Certainly! But there are lots of weird things that we can't fix... like not being able to read the value of |
+1 Any workaround for IE10+ to get react to fire a synth onChange, on a browser onchange for range inputs |
+1 for input on IE10+ firing onChange |
+1 to all the +1 |
any news? range input is still broken in IE 11. |
+1 for this to be applied. Doesn't work for me even on Edge |
Does not work in IE 11. |
+1 |
For what it's worth, I created a work around component while this is worked out in core: https://github.com/mapbox/react-range |
+1, Love the work that everyone is doing on react, but I do feel like this bug should be a higher priority to fix seeing as we are approaching the 2 year mark from its discovery. |
@dancoates I'm sorry that this is a lower priority for us than for you. Feel free to send a pull request though! |
No need to be sorry, I realise it is a tricky one. I'll take a look at ChangeEventPlugin and see if I can help. |
👍 would love to see this fixed! How I dealt with the problem for now It doesn't give the exact same result because the value is only changed on the |
I also ran into this & would love to see it fixed. Thanks for the suggestions for workarounds. Adding an "onClick" or "onMouseup" event was very helpful, but it's still suboptimal that nothing happens until the user let's go of the slider. |
Check out this on StackOverflow which explains a way to address getting updates while the user is dragging... |
Why is this closed? This is still a problem - onChange does not fire at all in IE11 in our testing. Forced to use https://github.com/mapbox/react-range |
We are using 15.3.2, and are experiencing this issue. Looking at the release notes for the three minor releases since then, I don't see that this has been fixed. Why is it closed? Issue #8168 seems to be the tracking case for it, but it seems like this issue has a much more thorough description of the problem. |
If you look at the history above, you will see that the issue was closed by #5746. So the fix will be in 16, and we can’t put it in 15.x because it introduces a breaking change in behavior. I don’t know if it’s possible to backport it to 15.x. @jquense and @nhunzaker would likely be able to answer this. |
It is possible! There is even a PR :) already #8575 |
Oh nice. Can you make a list of DOM PRs that are hanging in there awaiting review? |
Anyone working on a browser test fixture for this? If not, I've got some time to write one up. |
I was planning on it but haven had a moment yet. feel free to jump in |
No worries. There's plenty of other test cases to write up. I've got a PR out related to #8308. I'll shift gears to that. |
I encountered this issue today on my Windows phone. It does not call the method I specified in onChange. When is the fix going to be applied? |
This has been released in 15.6.x. |
No description provided.
The text was updated successfully, but these errors were encountered: