File tree 1 file changed +4
-2
lines changed
packages/react-dom/src/client
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';
17
17
import ReactControlledValuePropTypes from '../shared/ReactControlledValuePropTypes' ;
18
18
19
19
type InputWithWrapperState = HTMLInputElement & {
20
+ value : string ,
21
+ defaultValue : string ,
20
22
_wrapperState : {
21
- initialValue : ? string ,
23
+ initialValue : string ,
22
24
initialChecked : ?boolean ,
23
25
controlled ?: boolean ,
24
26
} ,
@@ -300,7 +302,7 @@ function updateNamedCousins(rootNode, props) {
300
302
// when the user is inputting text
301
303
//
302
304
// 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 ) {
304
306
if (
305
307
// Focused number inputs synchronize on blur. See ChangeEventPlugin.js
306
308
( type !== 'number' || node . ownerDocument . activeElement !== node ) &&
You can’t perform that action at this time.
0 commit comments