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

DataTable: Row groups are duplicated when the groupRowsBy value is changed #6608

Open
FAMSTM opened this issue May 10, 2024 · 0 comments
Open
Labels
Type: Bug Issue contains a defect related to a specific component.

Comments

@FAMSTM
Copy link

FAMSTM commented May 10, 2024

Describe the bug

When changing the groupRowsBy value (e. g. with a dropdown), some row groups aren't unique: there are several groups with the same header.

When a group is expanded, all the groups with the same header are also expanded and cannot be collapsed

Reproducer

https://stackblitz.com/edit/bbmmvc-uzgnvq

PrimeReact version

latest

React version

17.x

Language

TypeScript

Build / Runtime

Create React App (CRA)

Browser(s)

No response

Steps to reproduce the behavior

  1. Change the value of the dropdown from "representative" to "country"
  2. There are 3 groups "Argentina", 2 groups "Egypt", 2 "Italy", etc.
  3. Expand the first "Argentina", the second and third "Argentina" are also expanded and cannot be collapsed

Expected behavior

All the rows of the same groupRowsBy value are in the same group header

@FAMSTM FAMSTM 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 10, 2024
@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 10, 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 defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

2 participants