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

TreeTable using stripedRows: children rows are not striped correctly #7513

Closed
Nickog13 opened this issue Dec 17, 2024 · 1 comment · Fixed by #7561
Closed

TreeTable using stripedRows: children rows are not striped correctly #7513

Nickog13 opened this issue Dec 17, 2024 · 1 comment · Fixed by #7561
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@Nickog13
Copy link
Contributor

Describe the bug

When the TreeTable is used with the property "stripedRows=true", the rows are striped correctly when everything is collapsed. However, when expanding, the expanded rows always seem to receive the css class p-row-odd, so they are all not striped.

This behavior can be observed with the simple demo example from here, when adding stripedRows to the TreeTable: https://primereact.org/treetable/#basic

Reproducer

No response

System Information

"primereact": "latest",
    "react": "18.3.1",

Steps to reproduce the behavior

No response

Expected behavior

No response

@Nickog13 Nickog13 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 17, 2024
@melloware melloware self-assigned this Jan 3, 2025
@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 3, 2025
@melloware melloware added this to the 10.9.2 milestone Jan 3, 2025
melloware added a commit to melloware/primereact that referenced this issue Jan 3, 2025
@melloware
Copy link
Member

Good catch the even/odd logic was wrong

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.

2 participants