Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultiSelect: maxSelectedLabels prop not respected #6716

Closed
zkriszti opened this issue Nov 2, 2024 · 1 comment
Closed

MultiSelect: maxSelectedLabels prop not respected #6716

zkriszti opened this issue Nov 2, 2024 · 1 comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@zkriszti
Copy link

zkriszti commented Nov 2, 2024

Describe the bug

The maxSelectedLabels prop is not respected in the MultiSelect component. There has been an earlier issue, where this problem occured with the chip display option, but now this seems to be present even without chip.

Reproducer

https://stackblitz.com/edit/jhpdp2?file=src%2FApp.vue

PrimeVue version

4.2.1

Vue version

3.x

Language

ES6

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

My minimal reproducible example has been forked from the example of the documentation:

Expected behavior

After selecting n elements, where n is the value of maxSelectedLabels, the (n+1)th element shouldn't be selectable

@zkriszti zkriszti added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Nov 2, 2024
@tugcekucukoglu
Copy link
Member

These two issues are different. maxSelectedLabels works as expected. Definition of the maxSelectedLabels props: https://primevue.org/multiselect/#api.multiselect.props.maxSelectedLabels

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

2 participants