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:
commit
8e3caace74
1 changed files with 1 additions and 1 deletions
2
javascript/dragdrop.js
vendored
2
javascript/dragdrop.js
vendored
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue