File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -380,12 +380,19 @@ export default {
380
380
swiper . pagination . destroy ( ) ;
381
381
} ,
382
382
click ( swiper , e ) {
383
+ const targetEl = e . target ;
383
384
if (
384
385
swiper . params . pagination . el &&
385
386
swiper . params . pagination . hideOnClick &&
386
387
swiper . pagination . $el . length > 0 &&
387
- ! $ ( e . target ) . hasClass ( swiper . params . pagination . bulletClass )
388
+ ! $ ( targetEl ) . hasClass ( swiper . params . pagination . bulletClass )
388
389
) {
390
+ if (
391
+ swiper . navigation &&
392
+ ( ( swiper . navigation . nextEl && targetEl === swiper . navigation . nextEl ) ||
393
+ ( swiper . navigation . prevEl && targetEl === swiper . navigation . prevEl ) )
394
+ )
395
+ return ;
389
396
const isHidden = swiper . pagination . $el . hasClass ( swiper . params . pagination . hiddenClass ) ;
390
397
if ( isHidden === true ) {
391
398
swiper . emit ( 'paginationShow' ) ;
You can’t perform that action at this time.
0 commit comments