From 2acb2e1883cc2e69e54583c6767da44abccf5604 Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Mon, 23 Dec 2024 09:51:04 +0100 Subject: [PATCH] Remove redundant querySelector --- src/fontra/views/editor/panel-glyph-search.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/fontra/views/editor/panel-glyph-search.js b/src/fontra/views/editor/panel-glyph-search.js index f13e88b92..97950b31f 100644 --- a/src/fontra/views/editor/panel-glyph-search.js +++ b/src/fontra/views/editor/panel-glyph-search.js @@ -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(); } } }