1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-19 18:29:23 +00:00

disable sort within a single group (#7389)

Co-authored-by: zhouwenxuan <aries@Mac.local>
This commit is contained in:
Aries
2025-01-20 09:48:50 +08:00
committed by GitHub
parent 41c09b95c6
commit a13f101e40

View File

@@ -75,7 +75,7 @@ const Board = ({
onDrop={e => onDragEnd(boardIndex, e)} onDrop={e => onDragEnd(boardIndex, e)}
onDragEnter={() => setDraggingOver(true)} onDragEnter={() => setDraggingOver(true)}
onDragLeave={() => setDraggingOver(false)} onDragLeave={() => setDraggingOver(false)}
shouldAcceptDrop={() => true} shouldAcceptDrop={(sourceContainer) => sourceContainer.groupName !== boardName}
getChildPayload={(cardIndex) => ({ boardIndex, cardIndex })} getChildPayload={(cardIndex) => ({ boardIndex, cardIndex })}
dropPlaceholder={{ dropPlaceholder={{
animationDuration: 300, animationDuration: 300,