clearTimeout while umounting Spin Component

close #1658
This commit is contained in:
RaoHai 2016-05-11 20:49:18 +08:00
parent 8da28d82fe
commit 26c92a1ec2

View File

@ -34,6 +34,12 @@ export default class Spin extends React.Component {
}
}
componentWillUnmount() {
if (this.debounceTimeout) {
clearTimeout(this.debounceTimeout);
}
}
getSpinning(props) {
// Backwards support
if ('spining' in props) {