Browse Source

clearTimeout while umounting `Spin` Component

close #1658
pull/1661/head
RaoHai 9 years ago
parent
commit
26c92a1ec2
  1. 6
      components/spin/index.jsx

6
components/spin/index.jsx

@ -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) {

Loading…
Cancel
Save