We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c05a657 + c04d10f commit b82f3abCopy full SHA for b82f3ab
src/renderers/dom/client/wrappers/ReactDOMInput.js
@@ -75,7 +75,10 @@ var ReactDOMInput = {
75
initialValue: defaultValue != null ? defaultValue : null,
76
onChange: _handleChange.bind(inst),
77
};
78
+ },
79
80
+ mountReadyWrapper: function(inst) {
81
+ // Can't be in mountWrapper or else server rendering leaks.
82
instancesByReactID[inst._rootNodeID] = inst;
83
},
84
src/renderers/dom/shared/ReactDOMComponent.js
@@ -606,8 +606,10 @@ ReactDOMComponent.Mixin = {
606
}
607
608
switch (this._tag) {
609
- case 'button':
610
case 'input':
+ ReactDOMInput.mountReadyWrapper(this);
611
+ // falls through
612
+ case 'button':
613
case 'select':
614
case 'textarea':
615
if (props.autoFocus) {
0 commit comments