File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/react-dom/src/client Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import {getFiberCurrentPropsFromNode} from './ReactDOMComponentTree';
1616import { getToStringValue , toString } from './ToStringValue' ;
1717import { checkControlledValueProps } from '../shared/ReactControlledValuePropTypes' ;
1818import { updateValueIfChanged } from './inputValueTracking' ;
19+ import getActiveElement from './getActiveElement' ;
1920import { disableInputAttributeSyncing } from 'shared/ReactFeatureFlags' ;
2021
2122import type { ToStringValue } from './ToStringValue' ;
@@ -412,7 +413,7 @@ export function setDefaultValue(
412413 if (
413414 // Focused number inputs synchronize on blur. See ChangeEventPlugin.js
414415 type !== 'number' ||
415- node . ownerDocument . activeElement !== node
416+ getActiveElement ( node . ownerDocument ) !== node
416417 ) {
417418 if ( value == null ) {
418419 node . defaultValue = toString ( node . _wrapperState . initialValue ) ;
You can’t perform that action at this time.
0 commit comments