mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-29 19:05:05 +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
|
||||
.filter(el => el.querySelector('input[type=file]'))?.[0];
|
||||
.filter(el => !el.querySelector('img'))?.[0];
|
||||
|
||||
dropReplaceImage(
|
||||
firstFreeImageField ?
|
||||
|
Loading…
Reference in New Issue
Block a user