From 6cc28eeb62916ef9f81eae92d86eae940da70739 Mon Sep 17 00:00:00 2001 From: wangxueliang Date: Wed, 18 Dec 2019 19:06:38 +0800 Subject: [PATCH] fix: animation no work #1540 --- components/_util/css-animation/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/_util/css-animation/index.js b/components/_util/css-animation/index.js index 5cc53fa07..e7d2f45db 100644 --- a/components/_util/css-animation/index.js +++ b/components/_util/css-animation/index.js @@ -104,7 +104,10 @@ const cssAnimation = (node, transitionName, endCallback) => { node.rcAnimTimeout = requestAnimationTimeout(() => { node.rcAnimTimeout = null; + + nodeClasses.add(className); nodeClasses.add(activeClassName); + if (active) { requestAnimationTimeout(active, 0); }