-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
Describe the bug
When rendering a BTable
with no-local-sorting
and custom sort keys defined as sortKey
in the fields
array, the sorting direction icons are not set properly in the table header.
Steps to reproduce the bug
- Create a basic
BTable
which receives sorteditems
. At least one field should have a customsortKey
, andno-local-sorting
should be set. - Try sorting by one of the fields that have a custom
sortKey
. - Notice how sorting direction icons are not updated in the header.
Expected behavior
The sorting direction icons should be properly updated, regardless of whether the field defined a custom sortKey
or not.
Versions
Libraries:
- BootstrapVue: 2.21.2
- Bootstrap: 4.5.3
- Vue: 2.6.12
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
Custom sortKey |
Default sort key |
---|---|
![]() |
![]() |
aleksandertabor
Metadata
Metadata
Assignees
Labels
No labels