@samitouri / QOS-React / commits / 52eb59dda2

Remove IE8-specific focus polyfill (#11800)

Dan Abramov committed Dec 7, 2017 at 22:47 UTC 52eb59dda2eb0d9afe3a18aacd6142c1d2f7ee25
1 file changed +1 -2
packages/react-dom/src/client/ReactInputSelection.js
+1 -2
@@ -6,7 +6,6 @@
6 */
7
8 import containsNode from 'fbjs/lib/containsNode';
9 -import focusNode from 'fbjs/lib/focusNode';
9 import getActiveElement from 'fbjs/lib/getActiveElement';
10
11 import * as ReactDOMSelection from './ReactDOMSelection';
@@ -70,7 +69,7 @@ export function restoreSelection(priorSelectionInformation) {
69 }
70 }
71
73 - focusNode(priorFocusedElem);
72 + priorFocusedElem.focus();
73
74 for (let i = 0; i < ancestors.length; i++) {
75 const info = ancestors[i];