AdeleD / react-paginate

A ReactJS component that creates a pagination
MIT License
2.76k stars 628 forks source link

onClick doc description is wrong #479

Closed drdarshanr closed 1 year ago

drdarshanr commented 1 year ago

onClick doc description says "The method to call when an active page is clicked. Exposes the active page object as an argument.". But this is invoked whenever a page is clicked not just the active page. This is very useful feature and description is misleading. Please correct the description.

I love this project. Keep this project live forever. Thanks a lot brother.

wildcatco commented 1 year ago

Are you talking about onPageActive? Description for onClick is "A callback for any click on the component. Exposes information on the part clicked (for eg. isNext for next control), the next expected page nextSelectedPage & others. Can return false to prevent any page change or a number to override the page to jump to."