fix: project state setting dnd (#5881)

This commit is contained in:
Anmol Singh Bhatia 2024-10-24 14:41:35 +05:30 committed by GitHub
parent e4e83a947a
commit 0312455d66
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -67,7 +67,7 @@ export const StateItem: FC<TStateItem> = observer((props) => {
getInitialData: () => initialData,
onDragStart: () => setIsDragging(true),
onDrop: () => setIsDragging(false),
canDrag: () => isDraggable,
canDrag: () => isDraggable && !disabled,
}),
dropTargetForElements({
element: elementRef,