mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
fix: 弹窗取消按钮支持事件动作
This commit is contained in:
parent
ae8d46fa13
commit
d4889f5f29
@ -230,8 +230,9 @@ export default class Dialog extends React.Component<DialogProps> {
|
||||
}
|
||||
|
||||
handleSelfClose(e?: any, confirmed?: boolean) {
|
||||
const {onClose, store} = this.props;
|
||||
const {onClose, store, dispatchEvent} = this.props;
|
||||
|
||||
dispatchEvent('cancel');
|
||||
// clear error
|
||||
store.updateMessage();
|
||||
onClose(confirmed);
|
||||
|
Loading…
Reference in New Issue
Block a user