Unverified Commit 8e3caace authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub

Merge pull request #672 from 48design/fix-inpaint-dragdrop-paste

replace existing image via paste or drop in inpaint mode (fixes #649)
parents f3d83fd6 ce479762
......@@ -9,7 +9,7 @@ function dropReplaceImage( imgWrap, files ) {
return;
}
imgWrap.querySelector('.modify-upload button + button')?.click();
imgWrap.querySelector('.modify-upload button + button, .touch-none + div button + button')?.click();
window.requestAnimationFrame( () => {
const fileInput = imgWrap.querySelector('input[type="file"]');
if ( fileInput ) {
......
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