-
Notifications
You must be signed in to change notification settings - Fork 841
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
[EuiInMemoryTable] onTableChange returns inconsistent sort.field property #5587
Comments
This looks like it was intentional at some point: eui/src/components/basic_table/in_memory_table.tsx Lines 404 to 415 in 5804943
It doesn't make any sense to me to return @chandlerprall do you have any context here? This code is a couple years old. |
It appears to be an intentional architectural decision to store |
Looks like Constance found the right thread to follow, but context for that snippet is that it enabled sorting of computed columns, introduced in PR #2044 to solve #2012 |
If we change the sorting of an InMemoryTable, the
sort.field
is an id. But if I change pagination setting, the resultingsort.field
is now using the column’s name instead. I can replicate this with sandbox on EUI 46.1.0. Here's link to sandbox to reproduce.Screen.Recording.2022-01-31.at.14.51.46.mov
The text was updated successfully, but these errors were encountered: