File tree 1 file changed +2
-1
lines changed
packages/react-dom/src/client
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';
16
16
import { getToStringValue , toString } from './ToStringValue' ;
17
17
import { checkControlledValueProps } from '../shared/ReactControlledValuePropTypes' ;
18
18
import { updateValueIfChanged } from './inputValueTracking' ;
19
+ import getActiveElement from './getActiveElement' ;
19
20
import { disableInputAttributeSyncing } from 'shared/ReactFeatureFlags' ;
20
21
21
22
import type { ToStringValue } from './ToStringValue' ;
@@ -412,7 +413,7 @@ export function setDefaultValue(
412
413
if (
413
414
// Focused number inputs synchronize on blur. See ChangeEventPlugin.js
414
415
type !== 'number' ||
415
- node . ownerDocument . activeElement !== node
416
+ getActiveElement ( node . ownerDocument ) !== node
416
417
) {
417
418
if ( value == null ) {
418
419
node . defaultValue = toString ( node . _wrapperState . initialValue ) ;
You can’t perform that action at this time.
0 commit comments