-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
BTable: sort direction icons are not set properly when using no-local-sorting and sortKey #6602
Comments
20 tasks
Hello, could you confirm that it's working correctly in the following codesandbox? |
Confirmed. It's working. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When rendering a
BTable
withno-local-sorting
and custom sort keys defined assortKey
in thefields
array, the sorting direction icons are not set properly in the table header.Steps to reproduce the bug
BTable
which receives sorteditems
. At least one field should have a customsortKey
, andno-local-sorting
should be set.sortKey
.Expected behavior
The sorting direction icons should be properly updated, regardless of whether the field defined a custom
sortKey
or not.Versions
Libraries:
Demo link
Here's a small repro: https://jsfiddle.net/paulgv/4u19v80o/
When sorting by first name or age, everything seems to be working properly because those fields are not using a custom
sortKey
. However, notice how sorting by last name does result in the items sorting being updated properly, but the icon in the Last name header is not updated.Additional context
sortKey
The text was updated successfully, but these errors were encountered: