We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 942f8e9 commit 49f3e88Copy full SHA for 49f3e88
src/ng-multiselect-dropdown/src/multiselect.component.ts
@@ -111,7 +111,10 @@ export class MultiSelectComponent implements ControlValueAccessor {
111
this.onFilterChange.emit($event);
112
}
113
114
- constructor(private listFilterPipe:ListFilterPipe) {}
+ constructor(
115
+ private listFilterPipe:ListFilterPipe,
116
+ private cdr: ChangeDetectorRef
117
+ ) {}
118
119
onItemClick($event: any, item: ListItem) {
120
if (this.disabled || item.isDisabled) {
@@ -171,6 +174,8 @@ export class MultiSelectComponent implements ControlValueAccessor {
171
174
this.selectedItems = [];
172
175
173
176
this.onChangeCallback(value);
177
+
178
+ this.cdr.markForCheck();
179
180
181
// From ControlValueAccessor interface
0 commit comments