Skip to content

Commit

Permalink
Merge pull request #724 from mobi/bug_table_dup_select_all_events
Browse files Browse the repository at this point in the history
[Bug] Table: Duplicate selectAllEvents fired
  • Loading branch information
grahamhency authored Dec 8, 2020
2 parents b12a426 + b3c6fc9 commit 6386331
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,10 @@ export class GoTableComponent implements OnInit, OnChanges, OnDestroy, AfterView

private setupSelectAllControlSub(): void {
this.selectAllControl.valueChanges
.pipe(takeUntil(this.destroy$))
.pipe(
distinctUntilChanged(),
takeUntil(this.destroy$)
)
.subscribe(() => {
this.targetedRows = [];
this.updateRowSelectForm();
Expand Down

0 comments on commit 6386331

Please sign in to comment.