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