mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-06 02:48:04 +00:00
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:
parent
176d31d1db
commit
739995b44d
1 changed files with 1 additions and 1 deletions
|
|
@ -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) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue