修复倒计时中,仍可以执行action问题

This commit is contained in:
rickcole 2021-05-31 20:59:57 +08:00
parent 964e9eaf54
commit 83c54c3f96

View File

@ -424,7 +424,13 @@ export class Action extends React.Component<ActionProps, ActionState> {
const result: any = onClick && onClick(e, this.props);
if (disabled || e.isDefaultPrevented() || result === false || !onAction) {
if (
disabled ||
e.isDefaultPrevented() ||
result === false ||
!onAction ||
this.state.inCountDown
) {
return;
}