From af2044d1ac84c6f394364136cf0ddc5c73ea49f0 Mon Sep 17 00:00:00 2001 From: lucaQ Date: Wed, 10 Jan 2024 13:33:10 +0100 Subject: [PATCH] p-multiselect is not resetting when using with reactive form Fixes #14490 --- src/app/components/multiselect/multiselect.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/components/multiselect/multiselect.ts b/src/app/components/multiselect/multiselect.ts index 0fedc8091af..db45b7b6967 100755 --- a/src/app/components/multiselect/multiselect.ts +++ b/src/app/components/multiselect/multiselect.ts @@ -1097,6 +1097,8 @@ export class MultiSelect implements OnInit, AfterViewInit, AfterContentInit, Aft this.selectedOptions = [...modelValue]; } this.cd.markForCheck(); + } else { + this.selectedOptions = []; } }); }