diff --git a/tagAutocomplete.js b/tagAutocomplete.js index 92fe522..7951acb 100644 --- a/tagAutocomplete.js +++ b/tagAutocomplete.js @@ -183,8 +183,8 @@ function insertTextAtCursor(text, tagword) { promptTextbox.selectionEnd = promptTextbox.selectionStart; // Since we've modified a Gradio Textbox component manually, we need to simulate an `input` DOM event to ensure its - // internal Svelte data binding remains in sync. - promptTextbox.dispatchEvent(new Event("input", { bubbles: true })); + // internal Svelte data binding remains in sync. + promptTextbox.dispatchEvent(new Event("input", { bubbles: true })); // Hide results after inserting hideResults();