Merge pull request #1086 from TriliumNext/fix_search_of_autocomplete

Fix a bug in the full text search in AutoComplete
This commit is contained in:
Elian Doran 2025-02-01 11:41:06 +02:00 committed by GitHub
commit 0acd3c621e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -131,7 +131,6 @@ function fullTextSearch($el: JQuery<HTMLElement>, options: Options) {
$el.trigger("focus"); $el.trigger("focus");
options.fastSearch = false; options.fastSearch = false;
$el.autocomplete("val", ""); $el.autocomplete("val", "");
$el.autocomplete();
$el.setSelectedNotePath(""); $el.setSelectedNotePath("");
$el.autocomplete("val", searchString); $el.autocomplete("val", searchString);
// Set a delay to avoid resetting to true before full text search (await server.get) is called. // Set a delay to avoid resetting to true before full text search (await server.get) is called.