Merge pull request #13372 from ezt19/patch-1

Update dragdrop.js
This commit is contained in:
AUTOMATIC1111 2023-09-30 08:46:48 +03:00 committed by GitHub
commit 9b17416580
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 ?