Skip to content

Commit

Permalink
Merge pull request AUTOMATIC1111#672 from 48design/fix-inpaint-dragdr…
Browse files Browse the repository at this point in the history
…op-paste

replace existing image via paste or drop in inpaint mode (fixes AUTOMATIC1111#649)
  • Loading branch information
AUTOMATIC1111 authored Sep 18, 2022
2 parents f3d83fd + ce47976 commit 8e3caac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/dragdrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 8e3caac

Please sign in to comment.