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

Closed
lilhottied opened this issue Aug 14, 2024 · 1 comment · Fixed by #6275
Closed

Listbox: OptionGroup disappear with filter #6233

lilhottied opened this issue Aug 14, 2024 · 1 comment · Fixed by #6275
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

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

tugcekucukoglu added a commit that referenced this issue Nov 13, 2024
#6233 - Listbox: Preserve option groups while filtering.
@tugcekucukoglu tugcekucukoglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Nov 13, 2024
@tugcekucukoglu tugcekucukoglu added this to the 4.2.2 milestone Nov 13, 2024
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

Successfully merging a pull request may close this issue.

3 participants