Repository navigation
✨ Features
defaultSortStatus(#67): the initial sort of the internal sorting. The rows are sorted and the header shows its arrow from the first render, the server render included; clicking a sortable header sorts as usual from there. Read once, on mount, and ignored whilesortStatusandonSortare both set. The exporteduseSortinghook takes the same option.
⚡ Improvements
aria-sorton the sorted header (#68): the header of the sorted column carriesaria-sort="ascending"or"descending"in every sorting mode, so screen readers announce the order. The other headers carry none.- Docs:
sortStatustakes effect only together withonSort; passed alone it is ignored. The External Sorting Control section now lists every prop combination and who sorts the rows in each, with a new Starting Sorted demo.
🐛 Bug Fixes
- Two empty values now compare equal when sorting, so the server and every browser engine order them the same way. Empty values still go last in both directions.
What's Changed
- chore(security): patch vulnerable dependencies by @gfazioli in #66
- docs(readme): show the hub's card image, drop the old demo videos by @gfazioli in #69
- feat(sorting): defaultSortStatus, and aria-sort on the sorted header by @gfazioli in #70
Full Changelog: 4.1.22...4.2.0