mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 02:30:30 -08:00
Update dragdrop.js
Fixing a problem when u cannot put two images and they are going into two different places for images.
This commit is contained in:
parent
5ef669de08
commit
fdecf813b6
1 changed files with 1 additions and 1 deletions
2
javascript/dragdrop.js
vendored
2
javascript/dragdrop.js
vendored
|
|
@ -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 ?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue