diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2022-09-18 09:54:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-18 09:54:57 +0000 |
commit | 83a65919bb2af35c0d47cbb47b8db2ac233e86ce (patch) | |
tree | c9f49efde09669e1358b337fe715bb9b6831d95a | |
parent | 3f29aa791bceea0b0de99263dd0a7f08c0551549 (diff) | |
parent | 3b56b545574b3fbd32a5cbed9ee5aa55268e77ae (diff) | |
download | stable-diffusion-webui-gfx803-83a65919bb2af35c0d47cbb47b8db2ac233e86ce.tar.gz stable-diffusion-webui-gfx803-83a65919bb2af35c0d47cbb47b8db2ac233e86ce.tar.bz2 stable-diffusion-webui-gfx803-83a65919bb2af35c0d47cbb47b8db2ac233e86ce.zip |
Merge pull request #648 from 48design/fix-img2img-paste
fix pasting of images from the clipboard in img2img (fixes #645)
-rw-r--r-- | javascript/dragdrop.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/javascript/dragdrop.js b/javascript/dragdrop.js index a3605bdc..0dddea88 100644 --- a/javascript/dragdrop.js +++ b/javascript/dragdrop.js @@ -54,5 +54,6 @@ window.addEventListener('paste', e => { input.dispatchEvent(new Event('change')) }); [...gradioApp().querySelectorAll('[data-testid="image"]')] + .filter(imgWrap => !imgWrap.closest('.\\!hidden')) .forEach(imgWrap => dropReplaceImage( imgWrap, files )); }); |