Skip to content

Commit

Permalink
fix: show dragging header text on drag
Browse files Browse the repository at this point in the history
  • Loading branch information
Domino987 committed Feb 26, 2022
1 parent 96afa7d commit 479b753
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/MTableHeader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ export function MTableHeader({ onColumnResized, ...props }) {
key={columnDef.tableData.id}
draggableId={columnDef.tableData.id.toString()}
index={index}
style={{ zIndex: 99 }}
>
{(provided, snapshot) => (
<div
Expand All @@ -216,10 +217,7 @@ export function MTableHeader({ onColumnResized, ...props }) {
{...provided.dragHandleProps}
style={
snapshot.isDragging
? {
...provided.draggableProps.style,
position: 'static'
}
? provided.draggableProps.style
: { position: 'relative', minWidth: 0, display: 'flex' }
}
>
Expand Down

0 comments on commit 479b753

Please sign in to comment.