Skip to content

Commit

Permalink
fix bug with overlapping when is not two dimensional
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian-bizfactory committed Aug 14, 2023
1 parent 6b94828 commit 9c3eae1
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions frontend/src/js/external-forms/form-components/DropzoneList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,14 @@ const DropzoneList = <DroppableObject extends PossibleDroppableObject>(
</ListItem>
</div>
))}
<DropzoneBetweenElements
acceptedDropTypes={acceptedDropTypes}
onDrop={dropBetween(items.length)}
lastElement
/>

{!disallowMultipleColumns && (
<DropzoneBetweenElements
acceptedDropTypes={acceptedDropTypes}
onDrop={dropBetween(items.length)}
lastElement
/>
)}
</div>
)}
<div ref={ref}>
Expand Down

0 comments on commit 9c3eae1

Please sign in to comment.