Table: aria-sort not updated when sorting multiple columns #17090
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
Appears to be a regression of #11051.
When sorting a column on a
p-table
withsortMode="multiple"
, thearia-sort
attribute of the table column header is stuck asascending
, and does not update todescending
.This can be observed on the PrimeNG showcase (https://primeng.org/table#multiple-columns-sort) and on the linked stackblitz reproduction.
Environment
Angular 18, PrimeNG 18, Chrome
Reproducer
https://stackblitz.com/edit/github-gdsf7p9w?file=src%2Fapp%2Fapp.component.html
Angular version
18.0.1
PrimeNG version
^18.0.0-rc.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.20.3
Browser(s)
Chrome 131.0.6778.140
Steps to reproduce the behavior
p-table
withsortMode="multiple"
, click a column header to enable sorting on that column.<th>
element of the sorted column.aria-sort
isascending
.aria-sort is still
ascending, when it should now be
descending`.Expected behavior
aria-sort
should reflect the correct sort direction of the column.The text was updated successfully, but these errors were encountered: