mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-05-15 08:19:00 +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
2
javascript/dragdrop.js
vendored
2
javascript/dragdrop.js
vendored
@ -119,7 +119,7 @@ window.addEventListener('paste', e => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const firstFreeImageField = visibleImageFields
|
const firstFreeImageField = visibleImageFields
|
||||||
.filter(el => el.querySelector('input[type=file]'))?.[0];
|
.filter(el => !el.querySelector('img'))?.[0];
|
||||||
|
|
||||||
dropReplaceImage(
|
dropReplaceImage(
|
||||||
firstFreeImageField ?
|
firstFreeImageField ?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user