Skip to content

Commit

Permalink
fix: only apply drag style if dragging
Browse files Browse the repository at this point in the history
  • Loading branch information
Domino987 committed Jul 2, 2021
1 parent eef03a0 commit 04b538f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/MTableHeader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ export function MTableHeader({ onColumnResized, ...props }) {
ref={provided.innerRef}
{...provided.draggableProps}
{...provided.dragHandleProps}
style={
snapshot.isDragging ? provided.draggableProps.style : {}
}
>
{columnDef.title}
</div>
Expand Down

0 comments on commit 04b538f

Please sign in to comment.