Skip to content

Commit 0269b96

Browse files
dafoLipata
authored andcommitted
fix(row-drag): deleting the last row throws error #5300
1 parent 78d94aa commit 0269b96

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

projects/igniteui-angular/src/lib/grids/row-drag.directive.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export class IgxRowDragDirective extends IgxDragDirective implements OnDestroy {
3535
public onPointerDown(event) {
3636
event.preventDefault();
3737
this._rowDragStarted = false;
38+
this._removeOnDestroy = false;
3839
super.onPointerDown(event);
3940
}
4041

0 commit comments

Comments
 (0)