Skip to content

Commit

Permalink
Fix: Unspecified error for IE11 (#19530) (#19664)
Browse files Browse the repository at this point in the history
  • Loading branch information
hemakshis committed Aug 20, 2020
1 parent d5ed787 commit f912186
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 f912186

Please sign in to comment.