Skip to content

Releases: AdeleD/react-paginate

v8.0.0

07 Nov 22:16
Compare
Choose a tag to compare
  • Remove button role for links with an href (see: #390)
  • Add a rel attribute on previous page, current page and next page controls. They are respectivement customizable thanks to props prevPageRel, selectedPageRel and nextPageRel. To disable the rel attribute, set them to null. (see: #391)
  • A new prop disabledLinkClassName has been added. It allows to add a custom class on disabled previous and next controls. Default to undefined (no class added).
  • tabindex is now set to -1 on disabled controls (disable previous/next buttons; active page button). (see: #219)
  • Add a warning when providing an initialPage prop value that is greater than the maximum page index from pageCount prop.
  • Add a warning when providing a forcePage prop value that is greater than the maximum page index from pageCount prop.
  • The href generated from hrefBuilder prop is now also set on active page control <a> tag. (see #242)
  • A new prop hrefAllControls has been added. It allows to enable hrefBuilder for all controls.
  • Fix page range of 2 when first page is selected. (see #307)
  • Fix the breaking algorithm to not create breaks for only one page (see: #270)

v7.1.5

27 Oct 12:46
186f474
Compare
Choose a tag to compare
  • Fix the Webpack build to work for both browser and Node (see: #389)
  • Add a warning when providing both initialPage and forcePage props. You should only provides forcePage when the component is controlled. (see: #290)

v7.1.4

26 Oct 20:23
Compare
Choose a tag to compare
  • A new prop renderOnZeroPageCount has been added. It allows to define what to display when pageCount is zero. By default, it lets the main pagination boxes be displayed (Previous / Next). To display nothing, just provides renderOnZeroPageCount={null}. (see: #377)
  • A new prop className has been added, which is an alias to containerClassName and is usefull for integration with CSS-in-JS frameworks like styled-components. (see: #321)
  • Fix the Webpack build by providing a web target (see: #317)
  • Add a warning when a non integer is provided for pageCount

NB. This release breaks on Node ; for SSR and Node, please use v7.1.5 instead.