From 8906c375c55858b0df02664be1374df31189d5bb Mon Sep 17 00:00:00 2001 From: Quorafind Date: Tue, 12 Sep 2023 15:28:52 +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 f9030e3..63e37e5 100644 --- a/src/floatSearchIndex.ts +++ b/src/floatSearchIndex.ts @@ -660,7 +660,7 @@ class FloatSearchModal extends Modal { }); setTimeout(async () => { - await this.searchLeaf.view.setState(this.state, true as ViewStateResult); + await this.searchLeaf.view.setState(this.state, {focus: true}); this.state?.current ? (this.searchLeaf.view as SearchView).searchComponent.inputEl.setSelectionRange(0, 0) : (this.searchLeaf.view as SearchView).searchComponent.inputEl.setSelectionRange(0, this.state?.query?.length); }, 0);