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);