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
When sorting a column, onValueChange is triggered, but the passed data isn't the current rendered sorted data. The data from onValueChange is from the previous sort.
FAMSTM
changed the title
TreeTable: onValueChange doesn't retrieve the current sorted data when sorting
TreeTable: onValueChange doesn't retrieve the current sorted data
Dec 4, 2024
Describe the bug
When sorting a column, onValueChange is triggered, but the passed data isn't the current rendered sorted data. The data from onValueChange is from the previous sort.
Reproducer
https://stackblitz.com/edit/hqxfze?file=src%2FApp.jsx
System Information
Steps to reproduce the behavior
Expected behavior
Get the current sorted data with onValueChange.
The behavior of onValueChange should be the same as with DataTable, see https://stackblitz.com/edit/rx4gtk-z6quml?file=src%2FApp.jsx
The text was updated successfully, but these errors were encountered: