Skip to content

Commit

Permalink
Merge pull request #80 from ckifer/master
Browse files Browse the repository at this point in the history
  • Loading branch information
ckifer committed Aug 29, 2023
2 parents 08c569f + c55b997 commit dcf4f1f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Animate.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ class Animate extends PureComponent {

componentWillUnmount() {
this.mounted = false;
const { onAnimationEnd } = this.props;

if (this.unSubscribe) {
this.unSubscribe();
Expand All @@ -125,6 +126,10 @@ class Animate extends PureComponent {
if (this.stopJSAnimation) {
this.stopJSAnimation();
}

if (onAnimationEnd) {
onAnimationEnd();
}
}

handleStyleChange(style) {
Expand Down

0 comments on commit dcf4f1f

Please sign in to comment.