File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/react-dom/src/client Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,10 @@ import {getFiberCurrentPropsFromNode} from './ReactDOMComponentTree';
1717import ReactControlledValuePropTypes from '../shared/ReactControlledValuePropTypes' ;
1818
1919type InputWithWrapperState = HTMLInputElement & {
20+ value : string ,
21+ defaultValue : string ,
2022 _wrapperState : {
21- initialValue : ? string ,
23+ initialValue : string ,
2224 initialChecked : ?boolean ,
2325 controlled ?: boolean ,
2426 } ,
@@ -300,7 +302,7 @@ function updateNamedCousins(rootNode, props) {
300302// when the user is inputting text
301303//
302304// https://github.com/facebook/react/issues/7253
303- function synchronizeDefaultValue ( node : Element , type : ?string , value : string ) {
305+ function synchronizeDefaultValue ( node : InputWithWrapperState , type : ?string , value : string ) {
304306 if (
305307 // Focused number inputs synchronize on blur. See ChangeEventPlugin.js
306308 ( type !== 'number' || node . ownerDocument . activeElement !== node ) &&
You can’t perform that action at this time.
0 commit comments