Skip to content

Commit

Permalink
fix/add more conditions when writeValue
Browse files Browse the repository at this point in the history
  • Loading branch information
trigiacbmt authored Jun 9, 2024
1 parent f023074 commit 114e4c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/multiselect/multiselect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1997,7 +1997,7 @@ export class MultiSelect implements OnInit, AfterViewInit, AfterContentInit, Aft

writeValue(value: any): void {
this.value = value;
if (!ObjectUtils.isEmpty(this.selectionLimit)) {
if (!ObjectUtils.isEmpty(this.selectionLimit) && ObjectUtils.isEmpty(this.value)) {
this.modelValue.set([]);
} else {
this.modelValue.set(this.value);
Expand Down

0 comments on commit 114e4c1

Please sign in to comment.