[FIX] Paging error on clicking ellipsis
GeertHauwaerts opened this issue · comments
Geert Hauwaerts commented
When clicking on the ellipsis (even when it's disabled, it's a link), you receive the following error: DataTables warning: table id=DataTables_Table_0 - Unknown paging action: ellipsis.
This can be fixed by preventing ellipsis
from being pased to the draw function by adding this filter a.data.action !== 'ellipsis'
.
I wanted to issue a PR, but there are no build instructions on how to create the minimized JS file. Here is a working diff on the main JS.
diff --git a/js/dataTables.bulma.js b/js/dataTables.bulma.js
index 963c359..85ebbe9 100644
--- a/js/dataTables.bulma.js
+++ b/js/dataTables.bulma.js
@@ -31,7 +31,7 @@
q = function(d, f) {
var l, h, i, c, m = function(a) {
a.preventDefault();
- (!b(a.currentTarget).is("[disabled]") && !b(a.currentTarget).is("#table_ellipsis")) && o.page() != a.data.action && o.page(a.data.action).draw("page")
+ (!b(a.currentTarget).is("[disabled]") && !b(a.currentTarget).is("#table_ellipsis")) && (a.data.action !== 'ellipsis') && o.page() != a.data.action && o.page(a.data.action).draw("page")
};
l = 0;
for (h = f.length; l < h; l++)