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: it doesn't understand any 'optionGroupChildren' value except the 'items' #7653

Closed
dominikj111 opened this issue Jan 27, 2025 · 2 comments · Fixed by #7661
Closed
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@dominikj111
Copy link

Describe the bug

When the other than on web site optionGroupChildren value is used, the component doesn't understand the groups.

Image

Reproducer

https://stackblitz.com/edit/pgy6prlk?file=src%2FApp.jsx

System Information

react: 18.3.1
primereact: 10.9.2

Steps to reproduce the behavior

  1. go to an example and edit on StackBlitz
  2. rename the "optionGroupChildren" value and related arrays

Expected behavior

As presented on the web site.

@dominikj111 dominikj111 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 27, 2025
@dominikj111
Copy link
Author

@KumJungMin FYI as it looks related to #7595

@KumJungMin
Copy link
Contributor

1. Options are grouped using `props.optionGroupChildren` (but `props.optionGroupLabel` is required).
2. If an option has an unmatched object key, the item remains invisible.
  - In v10.9.1, when there are no items under a group, only the group title is displayed.
  - I have adjusted the implementation to maintain this behavior.

@melloware melloware added Type: Bug Issue contains a defect related to a specific component. and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jan 30, 2025
@melloware melloware added this to the 10.9.3 milestone Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants