Closed
Description
Check that this is really a bug
- I confirm
Reproduction link
https://codesandbox.io/p/devbox/error-when-unmount-swiper-on-resize-693vwm
Bug description
When unmounting a Swiper with loop={true}
on a window resize event the following error is thrown by Swiper:
Uncaught TypeError: Cannot read properties of undefined (reading 'slidesPerGroupSkip') at _Swiper.slideTo
Expected Behavior
No uncaught errors should be thrown when unmounting Swiper.
Actual Behavior
An uncaught error is thrown when unmounting Swiper.
Swiper version
11.0.5
Platform/Target and Browser Versions
macOS, Windows, iOS, Android, Safari, Chrome, Edge, Firefox
Validations
- Follow our Code of Conduct
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
- 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