Skip to content

Commit

Permalink
Prevent default event when clicking paging link.
Browse files Browse the repository at this point in the history
  • Loading branch information
Holt59 committed Mar 3, 2018
1 parent 78eef6c commit f5fe9bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion js/datatable.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,8 @@ DataTable.prototype = {
e.classList.add(dataTable.options.pagingItemClass);
}
if (e.childNodes.length > 0) {
e.childNodes[0].addEventListener('click', function () {
e.childNodes[0].addEventListener('click', function (event) {
event.preventDefault();
if (this.parentNode.classList.contains('active') ||
typeof this.dataset.page === 'undefined') {
return;
Expand Down
Loading

0 comments on commit f5fe9bf

Please sign in to comment.