Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
VinhVictor committed Nov 7, 2020
1 parent e5de362 commit 40fe90a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/pagination/pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ const Pagination = {
$el.on('mouseout', `.${params.bulletClass}`, () => {
swiper.allowTouchMove = true;
});
$el.on('click', `.${params.bulletClass}`, function onClick(e) {
$el.on('click', `.${params.bulletClass.replace(/ /g, '.')}}`, function onClick(e) {
e.preventDefault();
let index = $(this).index() * swiper.params.slidesPerGroup;
if (swiper.params.loop) index += swiper.loopedSlides;
Expand Down

0 comments on commit 40fe90a

Please sign in to comment.