LottieFiles / lottie-react

lottie web player as a react component
https://lottiefiles.com
MIT License
720 stars 80 forks source link

Error event doesn't work #105

Closed darlysson closed 1 year ago

darlysson commented 2 years ago

Overview

I would like to check if there's been an error with the animation but I'm currently unable. I've been trying it through the prop onEvent and even though I source a failed .json file I don't receive an error.

Here's what I'm trying to do:

onEvent={(event) => {
        if (event === 'error') doSomenthing()
      }}

Any idea on how to verify that? Thank you!

Consuming repo

What repo were you working in when this issue occurred?

...

Labels

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs.

manojkumar3692 commented 1 year ago

the same issue, for the onEvent method only not getting trigged , any help?

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs.

nattri commented 1 year ago

Facing same issue, any fix yet?

samuelOsborne commented 1 year ago

Fixed with v3.5.2 🎉