-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: reset pagination to last page if new records are rendered are less than previous #1690
Conversation
…ot one first page
✅ Deploy Preview for marvelous-moxie-a6e2fe ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Hi @ayeshaa-m I'm thinking if we should make this feature optional? I know that some users programmatically add rows to a data grid (for example by populating the data grid with API responses)... currently this implementation would go back to the first page every time a new row is added to the data-grid. What do you think? |
@felix-ico Good point. We should make it optional |
…rds are less than previous
@felix-ico @acstll As discussed, the pagination is set to last page if new records are less than the previous records count. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me!
reset pagination start point