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

fix(player): add isConnected check to disconnectedCallback #153

Merged
merged 1 commit into from
Apr 25, 2022

Conversation

billerr
Copy link
Contributor

@billerr billerr commented Apr 6, 2022

Added the isConnected check (as per the documentation) to the disconnectedCallback, to avoid clean-up in cases where the node was not removed, but moved (like insertBefore and similar).

This is a fix for issue #152

@karamalie
Copy link
Contributor

Looks good @billerr . will merge after testing it and add to next release. Thanks!

@Beavykins
Copy link

Is there an ETA for the next release? This is causing issues with GSAP scrollTrigger as when the player or it’s parent has pinning it disappears.

@karamalie karamalie merged commit cb82257 into LottieFiles:master Apr 25, 2022
@github-actions
Copy link
Contributor

🎉 This pull request is included in v1.5.7, available on npm: @lottiefiles/lottie-player@1.5.7.

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

Successfully merging this pull request may close these issues.

3 participants