Skip to content

Commit

Permalink
Merge pull request #16041 from dfernandez-elastic/master
Browse files Browse the repository at this point in the history
fix(MultiSelect): Check for NaN values in isSelectionAllDisabled method
  • Loading branch information
cetincakiroglu authored Jul 18, 2024
2 parents 72fc52f + 57d9556 commit 4382349
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 @@ -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
Expand Down

0 comments on commit 4382349

Please sign in to comment.