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 sorted items. At least one field should have a custom sortKey, and no-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 |
 |
 |
Describe the bug
When rendering a
BTablewithno-local-sortingand custom sort keys defined assortKeyin thefieldsarray, the sorting direction icons are not set properly in the table header.Steps to reproduce the bug
BTablewhich receives sorteditems. At least one field should have a customsortKey, andno-local-sortingshould be set.sortKey.Expected behavior
The sorting direction icons should be properly updated, regardless of whether the field defined a custom
sortKeyor 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