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

TypeError: Cannot read properties of undefined (reading 'removeListener') #21

Open
dlogvin opened this issue May 1, 2022 · 0 comments

Comments

@dlogvin
Copy link

dlogvin commented May 1, 2022

Not sure why, but it's clearly bugging me out the fact that I'm getting this error after an onClick() event.

Let me show some of my code:

<a onClick={() => { activateAnimation(); play(); }} className={styles.card}>
    <h2>Test  &rarr;</h2>
    <p>Test.</p>
</a>

The function:

const activateAnimation = () => {
    setPopup(true);
    setAnimation(true);
}

Using Lottie-interactive:

<lottie-interactive
    style={{ height: 400, width: 200 }}
    path='https://assets7.lottiefiles.com/packages/lf20_5z8txnjm.json'
    autoplay
    loop
/>{ ' ' }

Maybe I'm doing something wrong?

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

No branches or pull requests

1 participant