Skip to content

Commit

Permalink
fixed double border style issue
Browse files Browse the repository at this point in the history
  • Loading branch information
IDCs committed Sep 24, 2024
1 parent cee69fd commit 9b1b627
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controls/DraggableListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const DraggableItem: React.FC<IDraggableListItemProps> = ({
return {
isDraggingItem: monitor.isDragging(),
draggedStyle: {
border: monitor.isDragging() && !isSelected ? '2px solid #A1A1AA' : undefined,
border: monitor.isDragging() && !isSelected && draggedItems.length === 0 ? '2px solid #A1A1AA' : undefined,
} as React.CSSProperties,
}
},
Expand Down

0 comments on commit 9b1b627

Please sign in to comment.