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: filtering causes labels of currently selected values to display "null" #2901

Closed
sebstrand opened this issue Aug 30, 2022 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@sebstrand
Copy link

Describe the bug

When a simple MultiSelect (no custom slot content) has selected options that do not match the entered filter the labels of those selected options becomes "null". It seems like the labels for the current selection are taken from the list of visible options instead of the full list of options.

Reproducer

No response

PrimeVue version

3.16.2

Vue version

3.x

Language

ES6

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

  1. Open the codesandbox demo page
  2. Press b in the multiselect filter field
  3. "Australia, China" in the the multiselect becomes "null, null"

Expected behavior

The labels for currently selected options should not be affected by the filter.

@sebstrand sebstrand added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Aug 30, 2022
@mertsincan mertsincan self-assigned this Aug 30, 2022
@mertsincan mertsincan added this to the 3.17.0 milestone Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants