Skip to content

Commit

Permalink
Dispatch color range only on color metric change #3309
Browse files Browse the repository at this point in the history
  • Loading branch information
jannikr authored and phanlezz committed May 25, 2023
1 parent adb43a8 commit 6b3947d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<mat-select
[panelClass]="'cc-metric-chooser'"
[value]="selectedMetricName"
(selectionChange)="handleMetricChanged($event.value)"
(selectionChange)="handleMetricChanged($event.value); onChange()"
(openedChange)="handleOpenedChanged($event)"
[disabled]="isDisabled"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ export class MetricChooserComponent implements OnInit {
} else {
this.searchTerm = ""
}
}

onChange() {
if (this.callback) {
this.callback()
}
Expand Down

0 comments on commit 6b3947d

Please sign in to comment.