fix: animation no work #1540

pull/1572/head
wangxueliang 5 years ago
parent a66ff7deb0
commit 6cc28eeb62

@ -104,7 +104,10 @@ const cssAnimation = (node, transitionName, endCallback) => {
node.rcAnimTimeout = requestAnimationTimeout(() => { node.rcAnimTimeout = requestAnimationTimeout(() => {
node.rcAnimTimeout = null; node.rcAnimTimeout = null;
nodeClasses.add(className);
nodeClasses.add(activeClassName); nodeClasses.add(activeClassName);
if (active) { if (active) {
requestAnimationTimeout(active, 0); requestAnimationTimeout(active, 0);
} }

Loading…
Cancel
Save