Skip to content

Commit

Permalink
Merge pull request AUTOMATIC1111#13372 from ezt19/patch-1
Browse files Browse the repository at this point in the history
Update dragdrop.js
  • Loading branch information
AUTOMATIC1111 authored Sep 30, 2023
2 parents 833b9b6 + fdecf81 commit 9b17416
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 @@ -119,7 +119,7 @@ window.addEventListener('paste', e => {
}

const firstFreeImageField = visibleImageFields
.filter(el => el.querySelector('input[type=file]'))?.[0];
.filter(el => !el.querySelector('img'))?.[0];

dropReplaceImage(
firstFreeImageField ?
Expand Down

0 comments on commit 9b17416

Please sign in to comment.