mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-03 10:50:23 +00:00
update sending input event in java script to not cause exception in browser https://github.com/gradio-app/gradio/issues/2981
This commit is contained in:
@@ -69,7 +69,6 @@ addEventListener('keydown', (event) => {
|
||||
target.selectionStart = selectionStart;
|
||||
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)
|
||||
});
|
||||
|
Reference in New Issue
Block a user