fix #1405 submitting both tabs

This commit is contained in:
AUTOMATIC 2022-10-01 00:14:44 +03:00
parent 20f378a399
commit 6b02966fcd

View File

@ -191,7 +191,7 @@ onUiUpdate(function(){
if (!img2img_textarea) {
img2img_textarea = gradioApp().querySelector("#img2img_prompt > label > textarea");
img2img_textarea?.addEventListener("input", () => update_token_counter("img2img_token_button"));
txt2img_textarea?.addEventListener("keyup", (event) => submit_prompt(event, "img2img_generate"));
img2img_textarea?.addEventListener("keyup", (event) => submit_prompt(event, "img2img_generate"));
}
})