Commit 3b56b545 authored by Connum's avatar Connum

fix pasting of images from the clipboard in img2img (fixes #645)

parent 3f29aa79
......@@ -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