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

Sorting with empty cells doesn't work correctly.[BUG] #382

Open
mawsbu opened this issue May 2, 2024 · 0 comments
Open

Sorting with empty cells doesn't work correctly.[BUG] #382

mawsbu opened this issue May 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mawsbu
Copy link

mawsbu commented May 2, 2024

We've been using tables inside "form" elements and have recently observed a strange side effect. Some tables, after sorting them, were submitting the whole form and reloading the page. So, for some reason, it breaks the sorting process, shows an error in the console, and then makes a default submission. It turns out that there are two conditions for this error: the table needs to be initialized with the number of entries per page larger than the table itself, and there have to be a few cells with no content inside. Then, if you try to sort the columns, sometimes it works fine for the first one or two clicks, but ultimately it breaks. Since, in our case, the tables are mostly generated dynamically and we cannot predict the content or number of rows, it is an issue.

Here are examples of static tables where you can see this issue..

@mawsbu mawsbu added the bug Something isn't working label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant