aboutsummaryrefslogtreecommitdiffstats
path: root/javascript/dragdrop.js
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-10-14 14:53:34 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-10-14 14:53:34 +0000
commit33ae6be55eaedabd49c8c888ec0b37c612618fdf (patch)
tree79d28316cdcd02c123236da8111b2035f19a23c7 /javascript/dragdrop.js
parenta156c097ab68fd18145547630d32fbab0673ea53 (diff)
downloadstable-diffusion-webui-gfx803-33ae6be55eaedabd49c8c888ec0b37c612618fdf.tar.gz
stable-diffusion-webui-gfx803-33ae6be55eaedabd49c8c888ec0b37c612618fdf.tar.bz2
stable-diffusion-webui-gfx803-33ae6be55eaedabd49c8c888ec0b37c612618fdf.zip
fix paste not working in firefox
fix paste always going into txt2img field
Diffstat (limited to 'javascript/dragdrop.js')
-rw-r--r--javascript/dragdrop.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/javascript/dragdrop.js b/javascript/dragdrop.js
index cf900f50..fe0185a5 100644
--- a/javascript/dragdrop.js
+++ b/javascript/dragdrop.js
@@ -43,7 +43,7 @@ function dropReplaceImage( imgWrap, files ) {
window.document.addEventListener('dragover', e => {
const target = e.composedPath()[0];
const imgWrap = target.closest('[data-testid="image"]');
- if ( !imgWrap ) {
+ if ( !imgWrap && target.placeholder != "Prompt") {
return;
}
e.stopPropagation();