primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
10.62k stars 4.63k forks source link

Multiselect: When using Chip and hitting the limit of selectionLimit, Chip close/unselect button becomes disabled #16520

Open Yodamdam opened 1 month ago

Yodamdam commented 1 month ago

Describe the bug

When using the display chip, and selectionLimit together, when your input reaches the specified selectionLimit, the cross button of all chips become disabled along with the options.

Environment

Dev

Reproducer

No response

Angular version

17.3.3

PrimeNG version

17.18.6

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20.11.1

Browser(s)

Chrome 128

Steps to reproduce the behavior

  1. Have a multiselect input with display=chip and selectionLimit=2
  2. Fill that input with a single value => the chip cross button is enabled and working
  3. Fill that input to have 2 values (the value of selectionLimit) => the chips cross buttons are disabled and not working

Expected behavior

When reaching the selectionLimit amount of results, only the options and the select all should be disabled not the cross of the chips displayed.

github-actions[bot] commented 1 week ago

Due to PrimeNG team's busy roadmap, this issue is available for anyone to work on. Make sure to reference this issue in your pull request. :sparkles: Thank you for your contribution! :sparkles: