Skip to content
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

add a conditional to early return if the swiper controller is destroyed #6555

Merged

Conversation

TakhyunKim
Copy link
Contributor

Fixes to address this issue #6552
I did some debugging to fix this bug and found a solution.

Check if the swiper controller is destroyed before the setTranslate, setTransition functions run.

In other PR, the above two functions are executed and checked for destruction within the setControlledTranslate and setControlledTransition functions, but I think it would be nice to check for this in advance to avoid running unnecessary logic.

This is my first open source PR. Feedback is always welcome.

@nolimits4web nolimits4web merged commit 3fbec6e into nolimits4web:master Apr 11, 2023
@nolimits4web
Copy link
Owner

Merged, thank you!

@TakhyunKim
Copy link
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants