Skip to content

4.2.0

Latest

Choose a tag to compare

@gfazioli gfazioli released this 05 Dec 18:44
· 1 commit to master since this release

✨ 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 while sortStatus and onSort are both set. The exported useSorting hook takes the same option.

⚡ Improvements

  • aria-sort on the sorted header (#68): the header of the sorted column carries aria-sort="ascending" or "descending" in every sorting mode, so screen readers announce the order. The other headers carry none.
  • Docs: sortStatus takes effect only together with onSort; 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