File tree 2 files changed +6
-5
lines changed 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ var DOMPropertyOperations = require('DOMPropertyOperations');
13
13
var LinkedValueUtils = require ( 'LinkedValueUtils' ) ;
14
14
var ReactDOMComponentTree = require ( 'ReactDOMComponentTree' ) ;
15
15
var ReactUpdates = require ( 'ReactUpdates' ) ;
16
-
16
+ var inputValueTracking = require ( 'inputValueTracking' ) ;
17
17
var invariant = require ( 'invariant' ) ;
18
18
var warning = require ( 'warning' ) ;
19
19
@@ -348,6 +348,11 @@ function _handleChange(event) {
348
348
'ReactDOMInput: Mixing React and non-React radio inputs with the ' +
349
349
'same `name` is not supported.' ,
350
350
) ;
351
+
352
+ // We need update the tracked value on the named cousin since the value
353
+ // was changed but the input saw no event or value set
354
+ inputValueTracking . updateValueIfChanged ( otherNode ) ;
355
+
351
356
// If this is a controlled radio button group, forcing the input that
352
357
// was previously checked to update will cause it to be come re-checked
353
358
// as appropriate.
Original file line number Diff line number Diff line change @@ -907,10 +907,6 @@ ReactDOMComponent.Mixin = {
907
907
// happen after `_updateDOMProperties`. Otherwise HTML5 input validations
908
908
// raise warnings and prevent the new value from being assigned.
909
909
ReactDOMInput . updateWrapper ( this ) ;
910
-
911
- // We also check that we haven't missed a value update, such as a
912
- // Radio group shifting the checked value to another named radio input.
913
- inputValueTracking . updateValueIfChanged ( this ) ;
914
910
break ;
915
911
case 'textarea' :
916
912
ReactDOMTextarea . updateWrapper ( this ) ;
You can’t perform that action at this time.
0 commit comments