mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +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", () => {
|
$el.on("compositionend", () => {
|
||||||
isComposingInput = false;
|
isComposingInput = false;
|
||||||
|
const searchString = $el.autocomplete("val") as unknown as string;
|
||||||
|
$el.autocomplete("val", "");
|
||||||
|
$el.autocomplete("val", searchString);
|
||||||
});
|
});
|
||||||
|
|
||||||
$el.addClass("note-autocomplete-input");
|
$el.addClass("note-autocomplete-input");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user