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

The total rows parameter is not an integer #7678

Open
laurentmuller opened this issue Jan 8, 2025 · 0 comments
Open

The total rows parameter is not an integer #7678

laurentmuller opened this issue Jan 8, 2025 · 0 comments
Labels
Bug Issues which are marked as Bug

Comments

@laurentmuller
Copy link

laurentmuller commented Jan 8, 2025

Bootstraptable version(s) affected

1.24.0

Description

When initializing the number of rows (totalRows), the computed value is no more an integer, but a string.
See code on line 1259.

The value is then passed to the formatShowingRows() function. If this function is overriden, the comparaison with filtered rows can produce invalid results.

Example(s)

In the image below, the totalRows is an string not an integer:

image

Possible Solutions

Maybe the totalRows value must be converted back to integer, before calling the formatShowingRows() function.

@laurentmuller laurentmuller added the Bug Issues which are marked as Bug label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues which are marked as Bug
Projects
None yet
Development

No branches or pull requests

1 participant