Unverified Commit fdecf813 authored by ezt19's avatar ezt19 Committed by GitHub
Browse files

Update dragdrop.js

Fixing a problem when u cannot put two images and they are going into two different places for images.
parent 5ef669de
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 ?