Actually don't store <input> until mount-ready
So #4976 was a lie. Fixes #4870 for real (thanks @STRML).
Ben Alpert committed
Sep 25, 2015 at 13:38 UTC
6e62a010dd7e86456ed91a9c3ccc9078a84443d9
1 file changed
+8
-1
src/renderers/dom/shared/ReactDOMComponent.js
+8
-1
@@ -422,6 +422,10 @@ function trapBubbledEventsLocal() {
422
}
423
}
424
425
+function mountReadyInputWrapper() {
426
+ ReactDOMInput.mountReadyWrapper(this);
427
+}
428
+
429
function postUpdateSelectWrapper() {
430
ReactDOMSelect.postUpdateWrapper(this);
431
}
@@ -607,7 +611,10 @@ ReactDOMComponent.Mixin = {
611
612
switch (this._tag) {
613
case 'input':
610
- ReactDOMInput.mountReadyWrapper(this);
614
+ transaction.getReactMountReady().enqueue(
615
+ mountReadyInputWrapper,
616
+ this
617
+ );
618
// falls through
619
case 'button':
620
case 'select':