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

DropDown with Groups #6571

Closed
jnoren1 opened this issue May 5, 2024 · 3 comments · Fixed by #6572
Closed

DropDown with Groups #6571

jnoren1 opened this issue May 5, 2024 · 3 comments · Fixed by #6572
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@jnoren1
Copy link

jnoren1 commented May 5, 2024

Describe the bug

In the most recent release, if your items have a key called "group" in them they will be transformed into a group. This is new to the current version and was not that way in 10.6.3. Our lists have/had vestigial information because they are stored flat and are having to be transformed for the component. After updating our dropdown lists broke. Is the intended direction of this component or an undocumented feature?

Reproducer

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

PrimeReact version

10.6.4

React version

17.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

Safari

Steps to reproduce the behavior

Run the code with 10.6.4 and 10.6.3. This is the sample code from the documentation with the removed from the groups and one of the groups removed from the list for brevities sake.

In 10.6.4 you will notice that "Frankfurt" and "Los Angles" are now groups.
In 10.6.3 the list is as documented.

Expected behavior

Version 10.6.3 behaves as documented. 10.6.4 is responding to keys on the items in an unexpected way.

To be honest, this is more about understanding which direct this component is heading.

@jnoren1 jnoren1 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label May 5, 2024
@melloware
Copy link
Member

cc @Rekl0w

@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 May 5, 2024
@Rekl0w
Copy link
Contributor

Rekl0w commented May 5, 2024

Maybe these #6124 #6430 are the reasons. @melloware

@KirilCycle
Copy link
Contributor

I know why this happens let me fix this

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.

4 participants