fix: admin user list headers never announce the current sort to screen readers

In Admin Panel > Users, the column headers kept reporting the sort order from page load to screen readers, even after clicking a header re-sorted the list. Now the clicked header reports ascending or descending and all other headers report no sorting.

Fixes #31581
This commit is contained in:
Classic298 2026-09-29 12:16:09 +02:00
parent 176d31d1db
commit 739995b44d

View file

@ -72,7 +72,7 @@
} }
}; };
const sortState = (key) => $: sortState = (key) =>
orderBy === key ? (direction === 'asc' ? 'ascending' : 'descending') : 'none'; orderBy === key ? (direction === 'asc' ? 'ascending' : 'descending') : 'none';
const setSortKey = (key) => { const setSortKey = (key) => {