Skip to content

Commit e24bd8c

Browse files
committed
fix(pagination): correctly support multiple bullets paginations
fixes #6462
1 parent c912590 commit e24bd8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/modules/pagination/pagination.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,15 +296,15 @@ export default function Pagination({ swiper, extendParams, on, emit }) {
296296
paginationHTML = `<span class="${params.progressbarFillClass}"></span>`;
297297
}
298298
}
299-
299+
swiper.pagination.bullets = [];
300300
el.forEach((subEl) => {
301301
if (params.type !== 'custom') {
302302
subEl.innerHTML = paginationHTML || '';
303303
}
304304
if (params.type === 'bullets') {
305-
swiper.pagination.bullets = [
305+
swiper.pagination.bullets.push(
306306
...subEl.querySelectorAll(classesToSelector(params.bulletClass)),
307-
];
307+
);
308308
}
309309
});
310310
if (params.type !== 'custom') {

0 commit comments

Comments
 (0)