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

Open
Golosay opened this issue Sep 25, 2024 · 0 comments
Open

[Bug] Wrong page options number in pagination #3013

Golosay opened this issue Sep 25, 2024 · 0 comments

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
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

No branches or pull requests

1 participant