diff --git a/src/app/components/multiselect/multiselect.ts b/src/app/components/multiselect/multiselect.ts index 5bc73ae2e21..425aaabe46d 100755 --- a/src/app/components/multiselect/multiselect.ts +++ b/src/app/components/multiselect/multiselect.ts @@ -571,7 +571,7 @@ export class MultiSelect implements OnInit, AfterViewInit, AfterContentInit, Aft * Decides how many selected item labels to show at most. * @group Props */ - @Input({ transform: numberAttribute }) selectionLimit: number | undefined; + @Input({ transform: (value: unknown) => numberAttribute(value, null) }) selectionLimit: number | null | undefined; /** * Label to display after exceeding max selected labels e.g. ({0} items selected), defaults "ellipsis" keyword to indicate a text-overflow. * @group Props