formatting

This commit is contained in:
Halfmai
2022-10-13 11:52:06 +08:00
parent 61e74154b6
commit d99bfb7c48

View File

@@ -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();