diff --git a/components/transfer/list.jsx b/components/transfer/list.jsx index 02954a3bf9..8cc2b9aef0 100644 --- a/components/transfer/list.jsx +++ b/components/transfer/list.jsx @@ -54,13 +54,17 @@ export default class TransferList extends React.Component { } componentDidMount() { - setTimeout(() => { + this.timer = setTimeout(() => { this.setState({ mounted: true, }); }, 0); } + componentWillUnmount() { + clearTimeout(this.timer); + } + shouldComponentUpdate(...args) { return PureRenderMixin.shouldComponentUpdate.apply(this, args); }