aboutsummaryrefslogtreecommitdiffstats
path: root/javascript/edit-attention.js
diff options
context:
space:
mode:
authorJC-Array <44535867+JC-Array@users.noreply.github.com>2022-10-11 22:33:15 +0000
committerGitHub <noreply@github.com>2022-10-11 22:33:15 +0000
commit963d98639673098fa8df975dd380f1ef56fff3b5 (patch)
tree21d41f53af03ce2b21de7947fc216784fb2f2364 /javascript/edit-attention.js
parentff4ef13dd591ec52f196f344f47537695df95364 (diff)
parent6be32b31d181e42c639dad3451229aa7b9cfd1cf (diff)
downloadstable-diffusion-webui-gfx803-963d98639673098fa8df975dd380f1ef56fff3b5.tar.gz
stable-diffusion-webui-gfx803-963d98639673098fa8df975dd380f1ef56fff3b5.tar.bz2
stable-diffusion-webui-gfx803-963d98639673098fa8df975dd380f1ef56fff3b5.zip
Merge branch 'AUTOMATIC1111:master' into deepdanbooru_pre_process
Diffstat (limited to 'javascript/edit-attention.js')
-rw-r--r--javascript/edit-attention.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/javascript/edit-attention.js b/javascript/edit-attention.js
index 0280c603..79566a2e 100644
--- a/javascript/edit-attention.js
+++ b/javascript/edit-attention.js
@@ -38,4 +38,7 @@ 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 }));
});