|
@@ -69,7 +69,6 @@ addEventListener('keydown', (event) => {
|
|
target.selectionStart = selectionStart;
|
|
target.selectionStart = selectionStart;
|
|
target.selectionEnd = selectionEnd;
|
|
target.selectionEnd = selectionEnd;
|
|
}
|
|
}
|
|
- // 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.
|
|
|
|
- target.dispatchEvent(new Event("input", { bubbles: true }));
|
|
|
|
|
|
+
|
|
|
|
+ updateInput(target)
|
|
});
|
|
});
|