-
-
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
swiper.destroy() not working when createElements is enabled #7530
Closed
6 tasks done
samzabala opened this issue
May 13, 2024
· 3 comments
· May be fixed by matolres/nila-c#4, shwetagund/Angular-Login-Dashboard-#4, rajkowski/cms-platform#28, MohammadGhajari/information-security#13 or akashkumar8115/AspireNex_web-scraping-ecommerce-websites-#4
Closed
6 tasks done
swiper.destroy() not working when createElements is enabled #7530
samzabala opened this issue
May 13, 2024
· 3 comments
· May be fixed by matolres/nila-c#4, shwetagund/Angular-Login-Dashboard-#4, rajkowski/cms-platform#28, MohammadGhajari/information-security#13 or akashkumar8115/AspireNex_web-scraping-ecommerce-websites-#4
Labels
t0ggles
Linked to the t0ggles task
Comments
t0ggles-create swiper |
Task nolimits4web/SWIPER-133 was created |
Task nolimits4web/SWIPER-133 status changed to Done |
This was referenced Jul 6, 2024
This was referenced Aug 14, 2024
This was referenced Sep 10, 2024
This was referenced Sep 18, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Check that this is really a bug
Reproduction link
https://codesandbox.io/p/sandbox/swiper-stupid-38lq4g?file=%2Findex.html
Bug description
swiper.destroy() not working when createElements is enabled. wrapperEl is created dynamically when set to true, but destroy breaks scripts and returns fatal error when this is the setup
Error:
0:4290 Uncaught TypeError: Cannot read properties of undefined (reading 'removeAttribute')
Demo:
https://codesandbox.io/p/sandbox/swiper-stupid-38lq4g?file=%2Findex.html
Offending line was found ion the destroy method :
could be fixed if there is a condition to check if it exists first
please help. thank
Expected Behavior
destroy the slider
Actual Behavior
destroys the site
Swiper version
~11.0.5 - 11.1.1 and 11.1.2 checked
Platform/Target and Browser Versions
Chrome/Edie/Webkit Mac OS
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: