Skip to content

Commit 6158af5

Browse files
authored
Merge pull request #2504 from Akshat55/subscription-fix
fix: Store infinite subscription so we can later unsubscribe
2 parents 61aed39 + 4b3d903 commit 6158af5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/grid/column.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class ColumnDirective implements OnInit, OnChanges, OnDestroy {
6565

6666
ngOnInit() {
6767
if (this.gridService) {
68-
this.gridService.gridObservable.subscribe((isCssGrid: boolean) => {
68+
this.subscription = this.gridService.gridObservable.subscribe((isCssGrid: boolean) => {
6969
this.isCssGrid = isCssGrid;
7070
this.updateColumnClasses();
7171
});

0 commit comments

Comments
 (0)