mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
fix: 修复 CRUD 轮训 stopAutoRefreshWhen 后无法再次触发的问题 (#2744)
This commit is contained in:
parent
b7766a82fa
commit
82feb36c5b
@ -1057,7 +1057,7 @@ export default class CRUD extends React.Component<CRUDProps, any> {
|
||||
(!stopAutoRefreshWhen ||
|
||||
!(
|
||||
(stopAutoRefreshWhenModalIsOpen && store.hasModalOpened) ||
|
||||
evalExpression(stopAutoRefreshWhen, data)
|
||||
evalExpression(stopAutoRefreshWhen, createObject(store.data, store.query))
|
||||
)) &&
|
||||
(this.timer = setTimeout(
|
||||
silentPolling
|
||||
|
@ -108,6 +108,9 @@ export default class ButtonGroupControl extends React.Component<
|
||||
className: cx(option.className, btnClassName),
|
||||
disabled: option.disabled || disabled,
|
||||
onClick: (e: React.UIEvent<any>) => {
|
||||
if (disabled) {
|
||||
return;
|
||||
}
|
||||
this.handleToggle(option);
|
||||
e.preventDefault(); // 禁止 onAction 触发
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user