diff --git a/lib/core/src/lib/datatable/components/datatable/datatable.component.ts b/lib/core/src/lib/datatable/components/datatable/datatable.component.ts index e15a101ee77..391a60a9dc3 100644 --- a/lib/core/src/lib/datatable/components/datatable/datatable.component.ts +++ b/lib/core/src/lib/datatable/components/datatable/datatable.component.ts @@ -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 {