Skip to content

Commit

Permalink
ACS-6323 Allow to dragging column over only enabled columns
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksanderSklorz committed Dec 8, 2023
1 parent 8e7441a commit 134b91d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ export class DataTableComponent implements OnInit, AfterContentInit, OnChanges,
}

sortPredicate(index: number, _drag: CdkDrag, drop: CdkDropList): boolean {
return index > 0 && index < drop.getSortedItems().length;
return !drop.getSortedItems()[index].disabled;
}

private updateColumnsWidths(): void {
Expand Down

0 comments on commit 134b91d

Please sign in to comment.