Forced to trigger search after compositionend

This commit is contained in:
SiriusXT 2025-04-02 15:19:19 +08:00
parent 9a5793dfdd
commit 30056e7ffe

View File

@ -170,6 +170,10 @@ 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.setSelectedNotePath("");
$el.autocomplete("val", searchString);
});
$el.addClass("note-autocomplete-input");