Skip to content

Automatically reset the current page to 1 when rows change #59

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

Merged
merged 1 commit into from
Aug 12, 2020

Conversation

msantelices
Copy link

Current situation:

When the data on the table changes, for example, by appling an external filter, the currentPage variable is not reseted to 1. If you are in a page different than the first one and the filtered data produces less rows than the necesary for that page, the table becomes blank and the datatable info at is wrong, for example, it will say "10-3 of 3"


Fix:

The watcher resets the currentPage to 1 each time the rows change

@MicroDroid MicroDroid merged commit 829f53e into MicroDroid:master Aug 12, 2020
@MicroDroid
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants