swiper icon indicating copy to clipboard operation
swiper copied to clipboard

BUTTON tag inside slide snaps to next slide on click

Open teleskop150750 opened this issue 2 years ago • 7 comments

Check that this is really a bug

  • [X] I confirm

Reproduction link

https://codesandbox.io/s/swiper-slides-per-view-forked-pnqu3l?file=/index.html

Bug description

when I use button tag inside a slide when I do a click on the tag it slide without animation to the next slide.

Expected Behavior

nothing

Actual Behavior

slides to the next slide without animating

Swiper version

8.0.6

Platform/Target and Browser Versions

Windows, Chrome

Validations

  • [x] Follow our Code of Conduct
  • [X] Read the docs.
  • [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • [X] Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • [ ] I'm willing to open a PR

teleskop150750 avatar Feb 23 '22 11:02 teleskop150750

Same problem

silasbispo01 avatar Mar 17 '22 14:03 silasbispo01

Found the answer here : https://github.com/nolimits4web/Swiper/issues/3149#issuecomment-1044631964 Setting watchSlideProgress to true fixed the problem for our use case.


Also possibly related to #5437

johnozbay avatar Mar 20 '22 10:03 johnozbay

confirm the problem

andreylc avatar Apr 04 '22 15:04 andreylc

have the same problem.......

kwastaras1337 avatar Apr 05 '22 09:04 kwastaras1337

same here

joelthorner avatar May 05 '22 12:05 joelthorner

Found the answer here : #3149 (comment) Setting watchSlideProgress to true fixed the problem for our use case.

Also possibly related to #5437

omg need to set watchSlidesProgress to true. watchSlideProgress doesnt exist...

maxbronnikov10 avatar May 13 '22 23:05 maxbronnikov10

I can confirm the problem. watchSlidesProgress does not fix it for me.

felixmusmann avatar Jul 18 '22 13:07 felixmusmann

Found the answer here : #3149 (comment) Setting watchSlideProgress to true fixed the problem for our use case.

omg need to set watchSlidesProgress to true. watchSlideProgress doesnt exist...

@nolimits4web True story! Seems to have slide out of the code Screen Shot 2023-02-22 at 1 38 53 PM

mediaformat avatar Feb 22 '23 20:02 mediaformat