mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
Merge pull request #1598 from TriliumNext/autoComplete1
Forced to trigger search after compositionend
This commit is contained in:
commit
df328d576f
@ -170,6 +170,9 @@ function initNoteAutocomplete($el: JQuery<HTMLElement>, options?: Options) {
|
||||
});
|
||||
$el.on("compositionend", () => {
|
||||
isComposingInput = false;
|
||||
const searchString = $el.autocomplete("val") as unknown as string;
|
||||
$el.autocomplete("val", "");
|
||||
$el.autocomplete("val", searchString);
|
||||
});
|
||||
|
||||
$el.addClass("note-autocomplete-input");
|
||||
|
Loading…
x
Reference in New Issue
Block a user