From edd592cb9dd79d534853e7a0c1b648382e3f1a12 Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 8 Dec 2017 22:25:50 +0800 Subject: [PATCH] Fix broken animation of Menu and Collapse --- components/_util/openAnimation.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/_util/openAnimation.tsx b/components/_util/openAnimation.tsx index ac1d6e5fdc..fc171830c8 100644 --- a/components/_util/openAnimation.tsx +++ b/components/_util/openAnimation.tsx @@ -13,7 +13,7 @@ function animate(node: HTMLElement, show: boolean, done: () => void) { node.style.opacity = '1'; } else { height = node.offsetHeight; - node.style.height = '0 px'; + node.style.height = '0px'; node.style.opacity = '0'; } },