mirror of
https://github.com/quorafind/Obsidian-Float-Search.git
synced 2026-07-22 07:30:25 +00:00
Merge pull request #19 from depressiveRobot/patch-1
fix selection for search with last state
This commit is contained in:
commit
67bd4bf8eb
1 changed files with 1 additions and 1 deletions
|
|
@ -468,7 +468,7 @@ class FloatSearchModal extends Modal {
|
|||
|
||||
setTimeout(async ()=>{
|
||||
await this.searchLeaf.view.setState(this.state, true);
|
||||
this.state?.current ? (this.searchLeaf.view as SearchView).searchComponent.inputEl.setSelectionRange(0, 0) : (this.searchLeaf.view as SearchView).searchComponent.inputEl.setSelectionRange(this.state?.query?.length, this.state?.query?.length);
|
||||
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);
|
||||
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue