Skip to content

Commit 0c4eb09

Browse files
committed
Revert "fix: notify about collapsed / expanded groups"
This reverts commit 1417a5b.
1 parent dee1741 commit 0c4eb09

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);
320319
});
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
@@ -390,17 +390,17 @@ export class NgxGanttComponent extends GanttUpper implements OnInit, OnChanges,
390390
override expandGroups(expanded: boolean) {
391391
this.groups.forEach((group) => {
392392
group.setExpand(expanded);
393-
this.expandChange.emit(group);
394393
});
395394

396395
this.afterExpand();
396+
this.expandChange.next(null);
397397
this.cdr.detectChanges();
398398
}
399399

400400
override expandGroup(group: GanttGroupInternal) {
401401
group.setExpand(!group.expanded);
402402
this.afterExpand();
403-
this.expandChange.emit(group);
403+
this.expandChange.emit();
404404
this.cdr.detectChanges();
405405
}
406406

0 commit comments

Comments
 (0)