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

add responsive script to draw event #5722

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

pxpm
Copy link
Contributor

@pxpm pxpm commented Nov 25, 2024

WHY

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

After the table was re-drawn, eg: an entry deleted from the table, the responsive plugin doesn't kick in (as there are no layout changes to columns, it's just less one row).

For that reason, we need to add the responsive table check that enable the "responsive trigger" (three dots), to run on datatables draw event.

AFTER - What is happening after this PR?

It correctly display the responsive trigger when there are hidden columns.

HOW

How did you achieve that, in technical terms?

Added a check in table draw event.

Is it a breaking change?

No

@pxpm pxpm merged commit 8cbb8b2 into main Nov 25, 2024
8 of 9 checks passed
@pxpm pxpm deleted the add-responsive-plugin-check-to-datatables branch November 25, 2024 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant