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

replace existing image via paste or drop in inpaint mode (fixes #649)
This commit is contained in:
AUTOMATIC1111 2022-09-18 22:38:52 +03:00 committed by GitHub
commit 8e3caace74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) {