From d260e127f6b863e0ce5cebe1c8326d5cc9f7d17c Mon Sep 17 00:00:00 2001 From: jonyshi Date: Wed, 20 Mar 2019 17:35:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=85=E5=AD=98=E6=B3=84=E6=BC=8F=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/TableHeader.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/TableHeader.js b/src/TableHeader.js index 9f82a25..ee12a21 100644 --- a/src/TableHeader.js +++ b/src/TableHeader.js @@ -88,8 +88,12 @@ class TableHeader extends Component { componentWillUnmount(){ + if (this.props.draggable){ this.removeDragAbleEvent(); + } + if(this.props.dragborder){ this.removeDragBorderEvent(); + } } // componentDidMount(){