-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@slide-change does not get fired in the new version 11 #7181
Comments
I'm facing the same issue |
The problem is that the events now have a default prefix (swiper). I have the same problen in angular i have to do (swiperslidechange)="..." or you have to set the option {eventPrefix: ""} |
Exactly, that made the trick @GNURub thanks! Maybe the examples in the documentation needs to be updated? |
In my case slideChangeTransitionEnd, reachBeginning, afterInit and other events are not getting triggered, Do i need to write them too like this swiperafterInit? |
Use swiperslidechange instead of slidechange |
I had this issue and wasn't able to figure out the problem since yesterday. Using swiperslidechange instead of slidechange did work. Thanks to @GNURub and @radhouenchbinou |
GRAAAANDE, me salvaste |
Check that this is really a bug
Reproduction link
https://codesandbox.io/p/sandbox/wandering-meadow-vqwwng
Bug description
The function provided in @slide-change does not get executed when the slider is changed to another slide
Steps to reproduce:
Install swipper version 11, create a function to be called on @slideChange and monitor his execution
Code example for .vue file:
Expected Behavior
The function provided in @slide-change should get executed when the slider is changed to another slide
Actual Behavior
The function provided in @slide-change does not get executed when the slider is changed to another slide
Swiper version
11.0.0
Platform/Target and Browser Versions
Chrome latest
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: