Skip to content
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

[Bug] Wrong page options number in pagination #3013

Closed
Golosay opened this issue Sep 25, 2024 · 1 comment · Fixed by #3021
Closed

[Bug] Wrong page options number in pagination #3013

Golosay opened this issue Sep 25, 2024 · 1 comment · Fixed by #3021

Comments

@Golosay
Copy link

Golosay commented Sep 25, 2024

I use table together with pagination for displaying search results.
When I have the X number of pages for results, and then I'm setting new data with X number of rows (same number as number of pages in previous search results), I'm seeing still X number of pages in pagination page select.

The issue is with this code:

if (this.totalDataLength && this._pageOptions.length !== this.totalDataLength) {

Because this._pageOptions.length !== this.totalDataLength is false, as totalDataLength is the same number as a number of pages before. So, this getter is never recalculated.

image
Copy link

github-actions bot commented Oct 8, 2024

🎉 This issue has been resolved in version 5.43.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging a pull request may close this issue.

1 participant