You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug?
Report a bug.
What is the current behavior? <select> element's onChange event is fired with incorrect selectedIndex and value, like it hasn't actually changed. This happens only if the element has been rendered under another React DOM root, see the example in the link below.
What is the expected behavior? onChange callback handlers should receive events with those values that user has actually selected. In the test case above, for example, when choosing "Two", I expect to have the following console output: Change event, selectedIndex: 1, value: 2
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
The bug is observed with react and react-dom packages version 16.0.0-beta.3. Latest stable version (15.6.1) works just fine.
The text was updated successfully, but these errors were encountered:
martinsb
changed the title
<select>'s onChange event fires with incorrect selectedIndex, value
<select>'s onChange event fires with incorrect selectedIndex, value
Aug 9, 2017
Do you want to request a feature or report a bug?
Report a bug.
What is the current behavior?
<select>
element'sonChange
event is fired with incorrectselectedIndex
andvalue
, like it hasn't actually changed. This happens only if the element has been rendered under another React DOM root, see the example in the link below.If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
https://jsfiddle.net/martinsb/wd54vmmj/7/
What is the expected behavior?
onChange
callback handlers should receive events with those values that user has actually selected. In the test case above, for example, when choosing "Two", I expect to have the following console output:Change event, selectedIndex: 1, value: 2
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
The bug is observed with
react
andreact-dom
packages version16.0.0-beta.3
. Latest stable version (15.6.1
) works just fine.The text was updated successfully, but these errors were encountered: