Skip to content

Commit

Permalink
ElemeFE#893, fix scrollbar don't clean event listener 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
Emiya0306 committed Jan 30, 2019
1 parent a983a92 commit 1d28259
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/scrollbar/Scrollbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export class Scrollbar extends Component {
componentDidUpdate() {
this.resizeDom = ReactDOM.findDOMNode(this.refs.resize)
if (!this.props.noresize){
this.cleanResize && this.cleanResize();
addResizeListener(this.resizeDom, this.update)
this.cleanResize = ()=>{
removeResizeListener(this.resizeDom, this.update);
Expand Down

0 comments on commit 1d28259

Please sign in to comment.