pMultiSelect: The maxSelectedLabels is set by default to 3 and is not undefinable, which is undesired for implementing the overflow ellipsis #14195
Labels
LTS-PORTABLE
Issue's fix will be ported to supported LTS versions
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
In earlier versions, the maxSelectedLabels was undefined, simplifying overflow management. Additionally, when the maximum selected labels are reached, it changed to displaying "x selected items." It would be more preferable to show the items with an overflow ellipsis.
Environment
follow this stackblitz link to see
Reproducer
https://stackblitz.com/edit/github-eleua3-w79tvq
Angular version
16.2.12
PrimeNG version
16.9.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
16.14.0
Browser(s)
No response
Steps to reproduce the behavior
StackBlitz permits typos, resulting in maxSelectedLabels being set to undefined. Remove this parameter to observe the described behavior. It would be preferable to have undefined as the default or as an option. Therefore, the input type needs adjustment.
Expected behavior
No response
The text was updated successfully, but these errors were encountered: