Browse Source

fix: animation no work #1540

pull/1572/head
wangxueliang 5 years ago
parent
commit
6cc28eeb62
  1. 3
      components/_util/css-animation/index.js

3
components/_util/css-animation/index.js

@ -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