fixes #1009 : table duplication issue when screen size less than 800px #1040
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This pull request addresses an issue where the
.stacktable
components (stacktable.small-only
andstacktable.large-only
) were being activated simultaneously on screen sizes below 800px, causing table duplication. Additionally, it ensures that thestacktable()
function is called only once after all table content has been fully updated to avoid redundancy or conflicts.Motivation
The issue arises from calling the
stacktable()
function multiple times when the table content changes (e.g., when pagination is applied, or the number of table entries is updated). This results in a table duplication issue when both the.stacktable.small-only
and.stacktable.large-only
classes are triggered at the same time on smaller screens. The goal is to ensure proper handling of table initialization and avoid unnecessary re-initializations.Testing
Verified that the table displays correctly on both small and large screen sizes, without duplication.
Tested across various screen sizes to ensure the appropriate classes (stacktable.small-only and stacktable.large-only) are applied without overlap.
##Screenshot
