Skip to content

Commit

Permalink
Abstract box: Use focused getter instead of :focus-within
Browse files Browse the repository at this point in the history
See b4c5c5d

Fixes #4878
  • Loading branch information
AbeJellinek committed Dec 5, 2024
1 parent d57392d commit 886dbd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chrome/content/zotero/elements/abstractBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
}

async blurOpenField() {
if (this._abstractField?.matches(':focus-within')) {
if (this._abstractField.focused) {
this._abstractField.blur();
await this.save();
}
Expand Down

0 comments on commit 886dbd1

Please sign in to comment.