You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Subheader row group works wrong when you apply grouping on DataTable wihout sorting, or with sorting by different field than group field. If rows with same values go exactly one after another before applying grouping, they they will be grouped together, but if they are separated by rows with different value, they will be grouped to different groups.
I took the grouping stackblitz example from the documentation and change sortField to "status" in it. As you can see, the group by name has split into several groups.
Describe the bug
Subheader row group works wrong when you apply grouping on DataTable wihout sorting, or with sorting by different field than group field. If rows with same values go exactly one after another before applying grouping, they they will be grouped together, but if they are separated by rows with different value, they will be grouped to different groups.
I took the grouping stackblitz example from the documentation and change sortField to "status" in it. As you can see, the group by name has split into several groups.
Reproducer
https://stackblitz.com/edit/uqllcb-jazz5i?file=src%2FApp.jsx
PrimeReact version
latest
React version
18.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
Rows are grouped with the groupRowsBy property regardless of sorting in the table
The text was updated successfully, but these errors were encountered: