We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f93e34e commit 52eb59dCopy full SHA for 52eb59d
packages/react-dom/src/client/ReactInputSelection.js
@@ -6,7 +6,6 @@
6
*/
7
8
import containsNode from 'fbjs/lib/containsNode';
9
-import focusNode from 'fbjs/lib/focusNode';
10
import getActiveElement from 'fbjs/lib/getActiveElement';
11
12
import * as ReactDOMSelection from './ReactDOMSelection';
@@ -70,7 +69,7 @@ export function restoreSelection(priorSelectionInformation) {
70
69
}
71
72
73
- focusNode(priorFocusedElem);
+ priorFocusedElem.focus();
74
75
for (let i = 0; i < ancestors.length; i++) {
76
const info = ancestors[i];
0 commit comments