Skip to content

Commit 04b538f

Browse files
author
Domino987
committed
fix: only apply drag style if dragging
1 parent eef03a0 commit 04b538f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/MTableHeader/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ export function MTableHeader({ onColumnResized, ...props }) {
159159
ref={provided.innerRef}
160160
{...provided.draggableProps}
161161
{...provided.dragHandleProps}
162+
style={
163+
snapshot.isDragging ? provided.draggableProps.style : {}
164+
}
162165
>
163166
{columnDef.title}
164167
</div>

0 commit comments

Comments
 (0)