rc-animate
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -247,2 +247,8 @@ 'use strict'; | ||
} else { | ||
var end = function end() { | ||
if (_util2["default"].allowLeaveCallback(props)) { | ||
props.onLeave(key); | ||
props.onEnd(key, false); | ||
} | ||
}; | ||
/* eslint react/no-is-mounted:0 */ | ||
@@ -252,8 +258,6 @@ if (this.isMounted() && !(0, _ChildrenUtils.isSameChildren)(this.state.children, currentChildren, props.showProp)) { | ||
children: currentChildren | ||
}); | ||
}, end); | ||
} else { | ||
end(); | ||
} | ||
if (_util2["default"].allowLeaveCallback(props)) { | ||
props.onLeave(key); | ||
props.onEnd(key, false); | ||
} | ||
} | ||
@@ -260,0 +264,0 @@ }, |
@@ -47,3 +47,3 @@ 'use strict'; | ||
} else { | ||
setTimeout(done, 0); | ||
done(); | ||
} | ||
@@ -55,3 +55,3 @@ }, | ||
} else { | ||
setTimeout(done, 0); | ||
done(); | ||
} | ||
@@ -66,3 +66,3 @@ }, | ||
// didUpdate -> animate leave -> unmount (if animate is none) | ||
setTimeout(done, 0); | ||
done(); | ||
} | ||
@@ -69,0 +69,0 @@ }, |
{ | ||
"name": "rc-animate", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "css-transition ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
23041
500