fix: 弹窗取消按钮支持事件动作

This commit is contained in:
zhangxulong 2022-08-15 18:19:33 +08:00
parent ae8d46fa13
commit d4889f5f29

View File

@ -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);