Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/react-dom/src/client/ReactInputSelection.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ export function restoreSelection(priorSelectionInformation) {
}
}

try {
if (typeof priorFocusedElem.focus === 'function') {
priorFocusedElem.focus();
} catch (e) {
} else {
// The SVGElement don't have a focus method in IE11
focusNode(priorFocusedElem);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, we don't need this part now, right?

}
Expand Down