From d99bfb7c4879c98032a8d0a8378cab07aabd83f2 Mon Sep 17 00:00:00 2001 From: Halfmai Date: Thu, 13 Oct 2022 11:52:06 +0800 Subject: [PATCH] formatting --- tagAutocomplete.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();