File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 22
33## NEXT VERSION
44
5+ - fix: fix possible memory leak in ` ColumnResizer `
6+
57## v1.7.2 (2019-08-26)
68
79- fix: custom renderers should support function component with hooks
Original file line number Diff line number Diff line change @@ -51,11 +51,11 @@ class ColumnResizer extends React.PureComponent {
5151 this . _handleMouseMove = this . _handleMouseMove . bind ( this ) ;
5252 }
5353
54- componentWillMount ( ) {
54+ componentWillUnmount ( ) {
5555 if ( this . handleRef ) {
5656 const { ownerDocument } = this . handleRef ;
5757 ownerDocument . removeEventListener ( 'mousemove' , this . _handleMouseMove ) ;
58- ownerDocument . addEventListener ( 'mouseup' , this . _handleMouseUp ) ;
58+ ownerDocument . removeEventListener ( 'mouseup' , this . _handleMouseUp ) ;
5959 removeUserSelectStyles ( ownerDocument ) ;
6060 }
6161 }
You can’t perform that action at this time.
0 commit comments