mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 10:59:42 +08:00
修复倒计时中,仍可以执行action问题
This commit is contained in:
parent
964e9eaf54
commit
83c54c3f96
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user