内存泄漏问题
This commit is contained in:
parent
cf4d60a8c8
commit
d260e127f6
|
@ -88,8 +88,12 @@ class TableHeader extends Component {
|
||||||
|
|
||||||
|
|
||||||
componentWillUnmount(){
|
componentWillUnmount(){
|
||||||
|
if (this.props.draggable){
|
||||||
this.removeDragAbleEvent();
|
this.removeDragAbleEvent();
|
||||||
|
}
|
||||||
|
if(this.props.dragborder){
|
||||||
this.removeDragBorderEvent();
|
this.removeDragBorderEvent();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// componentDidMount(){
|
// componentDidMount(){
|
||||||
|
|
Loading…
Reference in New Issue