AdeleD / react-paginate

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

No change to index 0 when pageMax change #448

Open Chelo21 opened 2 years ago

Chelo21 commented 2 years ago

pageCount={pageMax}

cuando pageMax camibia no cambia a 0 el indice, el pageMax =5 selecciono pag 3 cambio pageMax =9 pag 3 sigue seleccionada, deveria cambiar a pag 1 (indice 0)

===================== when pageMax changes it does not change the index to 0, the pageMax =5 I select page 3 change pageMax =9 page 3 is still selected, it should change to page 1 (index 0)