Skip to content

Commit

Permalink
fix(pagination): avoid adding direction classes to other swiper's pag…
Browse files Browse the repository at this point in the history
…ination's
  • Loading branch information
nolimits4web committed Aug 18, 2021
1 parent 31ee849 commit f1c8c89
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/modules/pagination/pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,13 @@ export default function Pagination({ swiper, extendParams, on, emit }) {

if (swiper.params.uniqueNavElements && typeof params.el === 'string' && $el.length > 1) {
$el = swiper.$el.find(params.el);
// check if it belongs to another nested Swiper
if ($el.length > 1) {
$el = $el.filter((el) => {
if ($(el).parents('.swiper')[0] !== swiper.el) return false;
return true;
});
}
}

if (params.type === 'bullets' && params.clickable) {
Expand Down

0 comments on commit f1c8c89

Please sign in to comment.