From 460fe4edd0a66790594b160a71a8772b3f1428bc Mon Sep 17 00:00:00 2001 From: Quorafind Date: Tue, 9 Apr 2024 15:45:17 +0800 Subject: [PATCH] chore: bump version --- src/floatSearchIndex.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/floatSearchIndex.ts b/src/floatSearchIndex.ts index 20a6f51..41800d3 100644 --- a/src/floatSearchIndex.ts +++ b/src/floatSearchIndex.ts @@ -92,7 +92,7 @@ const initSearchViewWithLeaf = async (app: App, type: PaneType | 'sidebar', stat }); setTimeout(() => { - const inputEl = leaf.containerEl.getElementsByTagName("input")?.[0]; + const inputEl = leaf?.containerEl.getElementsByTagName("input")?.[0]; inputEl.focus(); }, 0); };