Skip to content

Commit

Permalink
Remove IE8-specific focus polyfill (#11800)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Dec 7, 2017
1 parent f93e34e commit 52eb59d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/react-dom/src/client/ReactInputSelection.js
Expand Up @@ -6,7 +6,6 @@
*/

import containsNode from 'fbjs/lib/containsNode';
import focusNode from 'fbjs/lib/focusNode';
import getActiveElement from 'fbjs/lib/getActiveElement';

import * as ReactDOMSelection from './ReactDOMSelection';
Expand Down Expand Up @@ -70,7 +69,7 @@ export function restoreSelection(priorSelectionInformation) {
}
}

focusNode(priorFocusedElem);
priorFocusedElem.focus();

for (let i = 0; i < ancestors.length; i++) {
const info = ancestors[i];
Expand Down

0 comments on commit 52eb59d

Please sign in to comment.