From 5b13180484bc23560f0471816db6da58ce12c500 Mon Sep 17 00:00:00 2001 From: andriy101 Date: Tue, 8 Dec 2020 02:10:05 +0200 Subject: [PATCH] #9579 Multiselect on chips display - adding onChange emit --- src/app/components/multiselect/multiselect.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/components/multiselect/multiselect.ts b/src/app/components/multiselect/multiselect.ts index 1ed4b8e6545..ea460d6d7b0 100755 --- a/src/app/components/multiselect/multiselect.ts +++ b/src/app/components/multiselect/multiselect.ts @@ -87,7 +87,7 @@ export class MultiSelectItem {
{{findLabelByValue(item)}} - +
{{placeholder || defaultLabel || 'empty'}}
@@ -664,9 +664,10 @@ export class MultiSelect implements OnInit,AfterViewInit,AfterContentInit,AfterV } } - removeChip(chip: any) { + removeChip(chip: any, event: MouseEvent) { this.value = this.value.filter(val => !ObjectUtils.equals(val, chip, this.dataKey)); this.onModelChange(this.value); + this.onChange.emit({ originalEvent: event, value: this.value }); this.updateFilledState(); }