From 98bd1aaa5a4e7921c2bddefe364ad732abc49dd7 Mon Sep 17 00:00:00 2001 From: 2betop <2betop.cn@gmail.com> Date: Tue, 31 Dec 2019 11:44:55 +0800 Subject: [PATCH] =?UTF-8?q?height=20=E8=B5=8B=E5=80=BC=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Collapse.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Collapse.tsx b/src/components/Collapse.tsx index 70fdaf53..09e9880f 100644 --- a/src/components/Collapse.tsx +++ b/src/components/Collapse.tsx @@ -46,7 +46,7 @@ export class Collapse extends React.Component { @autobind handleEnter(elem: HTMLElement) { - elem.style['height'] = null; + elem.style['height'] = ''; } @autobind @@ -56,7 +56,7 @@ export class Collapse extends React.Component { @autobind handleEntered(elem: HTMLElement) { - elem.style['height'] = null; + elem.style['height'] = ''; } @autobind @@ -74,7 +74,7 @@ export class Collapse extends React.Component { @autobind handleExiting(elem: HTMLElement) { - elem.style['height'] = null; + elem.style['height'] = ''; } render() {