Skip to content

Commit

Permalink
Fix: Unspecified error for IE11 (facebook#19530) (facebook#19664)
Browse files Browse the repository at this point in the history
  • Loading branch information
hemakshis authored and koto committed Jun 15, 2021
1 parent 5c40fdb commit dbf1481
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react-dom/src/client/ReactDOMInput.js
Expand Up @@ -16,6 +16,7 @@ import {getFiberCurrentPropsFromNode} from './ReactDOMComponentTree';
import {getToStringValue, toString} from './ToStringValue';
import {checkControlledValueProps} from '../shared/ReactControlledValuePropTypes';
import {updateValueIfChanged} from './inputValueTracking';
import getActiveElement from './getActiveElement';
import {disableInputAttributeSyncing} from 'shared/ReactFeatureFlags';

import type {ToStringValue} from './ToStringValue';
Expand Down Expand Up @@ -412,7 +413,7 @@ export function setDefaultValue(
if (
// Focused number inputs synchronize on blur. See ChangeEventPlugin.js
type !== 'number' ||
node.ownerDocument.activeElement !== node
getActiveElement(node.ownerDocument) !== node
) {
if (value == null) {
node.defaultValue = toString(node._wrapperState.initialValue);
Expand Down

0 comments on commit dbf1481

Please sign in to comment.