Releases: AdeleD/react-paginate
Releases · AdeleD/react-paginate
v8.0.0
- 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
andnextPageRel
. To disable the rel attribute, set them tonull
. (see: #391) - A new prop
disabledLinkClassName
has been added. It allows to add a custom class on disabledprevious
andnext
controls. Default toundefined
(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 frompageCount
prop. - Add a warning when providing a
forcePage
prop value that is greater than the maximum page index frompageCount
prop. - The
href
generated fromhrefBuilder
prop is now also set on active page control<a>
tag. (see #242) - A new prop
hrefAllControls
has been added. It allows to enablehrefBuilder
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
v7.1.4
- A new prop
renderOnZeroPageCount
has been added. It allows to define what to display whenpageCount
is zero. By default, it lets the main pagination boxes be displayed (Previous / Next). To display nothing, just providesrenderOnZeroPageCount={null}
. (see: #377) - A new prop
className
has been added, which is an alias tocontainerClassName
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.