Skip to content

Commit

Permalink
Remove redundant querySelector
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed Dec 23, 2024
1 parent aabef61 commit 2acb2e1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/fontra/views/editor/panel-glyph-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ export default class GlyphSearchPanel extends Panel {

async toggle(on, focus) {
if (on && focus) {
const glyphSearch = this.contentElement.querySelector("#glyph-search-list");
glyphSearch.focusSearchField();
this.glyphSearch.focusSearchField();
}
}
}
Expand Down

0 comments on commit 2acb2e1

Please sign in to comment.