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

Listbox: multiple not working #4966

Closed
kuaj opened this issue Dec 13, 2023 · 3 comments
Closed

Listbox: multiple not working #4966

kuaj opened this issue Dec 13, 2023 · 3 comments

Comments

@kuaj
Copy link

kuaj commented Dec 13, 2023

Describe the bug

After recent change multiple prop does not work anymore.
Please check your documentation. It was working in 3.41.0

Reproducer

https://primevue.org/listbox/#multiple

PrimeVue version

3.44.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

Chrome

Steps to reproduce the behavior

  1. Click one option
  2. Click second option
  3. Option one is deselected

Expected behavior

Option one stays selected

@kuaj kuaj added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 13, 2023
@Rakasch
Copy link
Contributor

Rakasch commented Dec 13, 2023

Seems the Listbox documentation is missing some description.
check the Datatable description, it has the same setting.
If you just add metaKeySelection, you have to hold "Ctrl" for multiselect.
Try:
:metaKeySelection="false"

@kuaj
Copy link
Author

kuaj commented Dec 14, 2023

Hey @Rakasch
thank you for the answer - it works.
It is hidden breaking change to the component behaviour. I would still suggest that the meta key selection not true by default:

metaKeySelection: {
type: Boolean,
default: true
},

@tugcekucukoglu
Copy link
Member

We will change the default type of metaKeySelection to false according to user demand. Please track this ticket #4985

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

No branches or pull requests

3 participants