lottie-react icon indicating copy to clipboard operation
lottie-react copied to clipboard

Error event doesn't work

Open darlysson opened this issue 2 years ago • 2 comments

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

  • [x] Add the Type: Bug label to this issue.

darlysson avatar Jul 13 '22 11:07 darlysson

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.

github-actions[bot] avatar Sep 12 '22 02:09 github-actions[bot]

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

manojkumar3692 avatar Sep 22 '22 11:09 manojkumar3692

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.

github-actions[bot] avatar Nov 23 '22 02:11 github-actions[bot]

Facing same issue, any fix yet?

nattri avatar Nov 25 '22 06:11 nattri

Fixed with v3.5.2 🎉

samuelOsborne avatar Jan 25 '23 12:01 samuelOsborne