Open pboguslawski opened 1 year ago
Dirty workaround that seems to work is to add class mdc-data-table__header-cell--sorted-descending
to every sortable table header cell when initial sortDirection
is descending
; i.e.
<DataTable>
<Head>
<Row>
<Cell columnId="name" class={initialSortDirection === 'descending' ? 'mdc-data-table__header-cell--sorted-descending' : ''}>
[...]
</Cell>
Describe the bug When creating datatable with
sortable
enabled andsortDirection
set todescending
, arrow is rendered asascending
.To Reproduce Steps to reproduce the behavior:
ascending
but icon does not change (now is in sync with variable).Expected behavior Icon state should be initially synchronized to sortDirection.
Desktop (please complete the following information):