Skip to content

Commit 518a44b

Browse files
authored
Merge pull request #175 from wertzui/master
fixed change detection when selecting a single element
2 parents 4158f4d + b14a016 commit 518a44b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/dropdown/dropdown.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ export class MultiselectDropdown implements OnInit, OnChanges, DoCheck, ControlV
230230
if (this.settings.closeOnSelect) {
231231
this.toggleDropdown();
232232
}
233+
this.model = this.model.slice();
233234
this.onModelChange(this.model);
234235
this.onModelTouched();
235236
}

0 commit comments

Comments
 (0)