Skip to content

Commit

Permalink
Only call preventDefault() on pagination buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
dregad committed Jun 12, 2022
1 parent f830935 commit 9dcb779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ module.exports = function (list) {
})

events.bind(pagingList.listContainer, 'click', function (e) {
e.preventDefault();
var target = e.target || e.srcElement,
page = list.utils.getAttribute(target, 'data-page'),
i = list.utils.getAttribute(target, 'data-i')
if (i) {
e.preventDefault();
list.show((i - 1) * page + 1, page)
}
})
Expand Down

0 comments on commit 9dcb779

Please sign in to comment.