🐛 fix delay not working

This commit is contained in:
afc163 2019-01-05 12:14:16 +08:00 committed by 偏右
parent b7b3af7cef
commit 82b9fd271e

View File

@ -88,7 +88,7 @@ class Spin extends React.Component<SpinProps, SpinState> {
spinning: spinning && !shouldBeDelayed,
};
if (shouldBeDelayed) {
if (delay) {
this.updateSpinning = debounce(this.updateSpinning, delay);
}
}