Skip to content

Commit 59466a0

Browse files
committed
Merge pull request #4977 from spicyj/gh-4870
Actually don't store <input> until mount-ready
2 parents b82f3ab + 6e62a01 commit 59466a0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/renderers/dom/shared/ReactDOMComponent.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,10 @@ function trapBubbledEventsLocal() {
422422
}
423423
}
424424

425+
function mountReadyInputWrapper() {
426+
ReactDOMInput.mountReadyWrapper(this);
427+
}
428+
425429
function postUpdateSelectWrapper() {
426430
ReactDOMSelect.postUpdateWrapper(this);
427431
}
@@ -607,7 +611,10 @@ ReactDOMComponent.Mixin = {
607611

608612
switch (this._tag) {
609613
case 'input':
610-
ReactDOMInput.mountReadyWrapper(this);
614+
transaction.getReactMountReady().enqueue(
615+
mountReadyInputWrapper,
616+
this
617+
);
611618
// falls through
612619
case 'button':
613620
case 'select':

0 commit comments

Comments
 (0)