Skip to content

Commit 52eb59d

Browse files
authored
Remove IE8-specific focus polyfill (#11800)
1 parent f93e34e commit 52eb59d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/react-dom/src/client/ReactInputSelection.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
*/
77

88
import containsNode from 'fbjs/lib/containsNode';
9-
import focusNode from 'fbjs/lib/focusNode';
109
import getActiveElement from 'fbjs/lib/getActiveElement';
1110

1211
import * as ReactDOMSelection from './ReactDOMSelection';
@@ -70,7 +69,7 @@ export function restoreSelection(priorSelectionInformation) {
7069
}
7170
}
7271

73-
focusNode(priorFocusedElem);
72+
priorFocusedElem.focus();
7473

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

0 commit comments

Comments
 (0)