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: OptionGroup disappear with filter #6233

Open
lilhottied opened this issue Aug 14, 2024 · 1 comment · May be fixed by #6275
Open

Listbox: OptionGroup disappear with filter #6233

lilhottied opened this issue Aug 14, 2024 · 1 comment · May be fixed by #6275
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@lilhottied
Copy link

Describe the bug

The problem is if I use optionGroups and Filter within the same Listbox component, When I filter, the filtered value hasn't render the optionGroups. Is there any solution for this?

Reproducer

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

PrimeVue version

4.0.0-rc.2

Vue version

4.x

Language

ES6

Build / Runtime

Vite

Browser(s)

All

Steps to reproduce the behavior

  1. Click on the Listbox component.
  2. Enter the desired value in the search filter input field.
  3. Check the result: Notice that the optionGroups are not displayed.

Expected behavior

  1. Click on the Listbox component.
  2. Enter the desired value in the search filter input field.
  3. Check the result: The optionGroup labels corresponding to each optionChild should be displayed.
@lilhottied lilhottied added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Aug 14, 2024
avramz added a commit to avramz/primevue that referenced this issue Aug 22, 2024
@avramz
Copy link
Contributor

avramz commented Aug 22, 2024

Can reproduce, fix in PR

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

Successfully merging a pull request may close this issue.

2 participants