Skip to content

Commit

Permalink
p-multiselect is not resetting when using with reactive form
Browse files Browse the repository at this point in the history
  • Loading branch information
HeavyRainLQ committed Jan 10, 2024
1 parent 94a19bf commit af2044d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/components/multiselect/multiselect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1097,6 +1097,8 @@ export class MultiSelect implements OnInit, AfterViewInit, AfterContentInit, Aft
this.selectedOptions = [...modelValue];
}
this.cd.markForCheck();
} else {
this.selectedOptions = [];
}
});
}
Expand Down

0 comments on commit af2044d

Please sign in to comment.