Commit 83a65919 authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub

Merge pull request #648 from 48design/fix-img2img-paste

fix pasting of images from the clipboard in img2img (fixes #645)
parents 3f29aa79 3b56b545
......@@ -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 ));
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment