From 5be4acd2a5e8e6ed37355aef391c45a0873e0fee Mon Sep 17 00:00:00 2001 From: Quorafind Date: Tue, 12 Sep 2023 15:32:07 +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 be75dda..c439798 100644 --- a/src/floatSearchIndex.ts +++ b/src/floatSearchIndex.ts @@ -662,7 +662,7 @@ class FloatSearchModal extends Modal { setTimeout(async () => { await this.searchLeaf.view.setState(this.state, { focus: true, - }); + } as ViewStateResult); 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);