aboutsummaryrefslogtreecommitdiffstats
path: root/javascript/dragdrop.js
diff options
context:
space:
mode:
authorpapuSpartan <30642826+papuSpartan@users.noreply.github.com>2022-10-21 18:53:32 +0000
committerGitHub <noreply@github.com>2022-10-21 18:53:32 +0000
commit4a9ff0891abc413031b44926372f611513b4810f (patch)
treef7622454a45669b13bce691e312f2c9dcfd9fb8a /javascript/dragdrop.js
parenta3b047b7c74dc6ca07f40aee778997fc1889d72f (diff)
parentf49c08ea566385db339c6628f65c3a121033f67c (diff)
downloadstable-diffusion-webui-gfx803-4a9ff0891abc413031b44926372f611513b4810f.tar.gz
stable-diffusion-webui-gfx803-4a9ff0891abc413031b44926372f611513b4810f.tar.bz2
stable-diffusion-webui-gfx803-4a9ff0891abc413031b44926372f611513b4810f.zip
Merge branch 'AUTOMATIC1111:master' into master
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 070cf255..3ed1cb3c 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 && target.placeholder.indexOf("Prompt") == -1) {
+ if ( !imgWrap && target.placeholder && target.placeholder.indexOf("Prompt") == -1) {
return;
}
e.stopPropagation();