Skip to content

Commit 1417a5b

Browse files
Robert Meyerwalkerkay
authored andcommitted
fix: notify about collapsed / expanded groups
1 parent 2539687 commit 1417a5b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/gantt/src/gantt-upper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,8 @@ export abstract class GanttUpper implements OnChanges, OnInit, OnDestroy {
316316
expandGroups(expanded: boolean) {
317317
this.groups.forEach((group) => {
318318
group.setExpand(expanded);
319+
this.expandChange.emit(group);
319320
});
320-
this.expandChange.next(null);
321321
this.cdr.detectChanges();
322322
}
323323

packages/gantt/src/gantt.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,17 +387,17 @@ export class NgxGanttComponent extends GanttUpper implements OnInit, OnChanges,
387387
override expandGroups(expanded: boolean) {
388388
this.groups.forEach((group) => {
389389
group.setExpand(expanded);
390+
this.expandChange.emit(group);
390391
});
391392

392393
this.afterExpand();
393-
this.expandChange.next(null);
394394
this.cdr.detectChanges();
395395
}
396396

397397
override expandGroup(group: GanttGroupInternal) {
398398
group.setExpand(!group.expanded);
399399
this.afterExpand();
400-
this.expandChange.emit();
400+
this.expandChange.emit(group);
401401
this.cdr.detectChanges();
402402
}
403403

0 commit comments

Comments
 (0)