Skip to content

Commit

Permalink
Revert DOMView commits that focus window
Browse files Browse the repository at this point in the history
The real problem was zotero/zotero@b05ef8e
  • Loading branch information
mrtcode committed Aug 21, 2023
1 parent 27e8568 commit 519e310
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/dom/common/dom-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -956,11 +956,7 @@ abstract class DOMView<State extends DOMViewState, Data> {
// ***

focus() {
if (document.activeElement !== this._iframe || !this._iframeDocument.activeElement) {
// The iframe sometimes won't correctly get focus unless we focus the outer window first
window.focus();
this._iframe.focus();
}
this._iframe.focus();
}

navigate(location: NavLocation, options: NavigateOptions = {}) {
Expand Down

0 comments on commit 519e310

Please sign in to comment.