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

fix page lenght stalling in cache & colspan issue on the table #5745

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

pxpm
Copy link
Contributor

@pxpm pxpm commented Jan 8, 2025

WHY

BEFORE - What was wrong? What was happening before this PR?

reported in #4951

When the showEntryCount was false, and the length of the page was smaller than the showed entries, a bug would appear because we set the filtered rows to 0, making the table behave as if it had 0 entries on it.

Related to that, while testing I found out that the pageLength could stall in the datatable cache in certain conditions.

AFTER - What is happening after this PR?

No more issues with the "empty table" state and the pageLength is not stall anymore.

HOW

How did you achieve that, in technical terms?

Set the filteredCount to the actual count in the table and added a check for pageLength cache.

Is it a breaking change?

no

@pxpm pxpm merged commit c0d1493 into main Jan 8, 2025
11 checks passed
@pxpm pxpm deleted the fix-colspan-issue- branch January 8, 2025 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant