diff --git a/src/app/components/multiselect/multiselect.ts b/src/app/components/multiselect/multiselect.ts index 58efa82479f..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 @@ -1471,10 +1471,6 @@ export class MultiSelect implements OnInit, AfterViewInit, AfterContentInit, Aft } isSelectionAllDisabled() { - if (this.showToggleAll && isNaN(this.selectionLimit)) { - return true; - } - return this.showToggleAll && ObjectUtils.isEmpty(this.selectionLimit); }