parent
a3b5acb788
commit
1015a60041
|
@ -182,7 +182,6 @@ export default class Modals {
|
||||||
content = content.map(c => typeof(c) === "string" ? React.createElement(Markdown, null, c) : c);
|
content = content.map(c => typeof(c) === "string" ? React.createElement(Markdown, null, c) : c);
|
||||||
|
|
||||||
const modalKey = ModalActions.openModal(props => {
|
const modalKey = ModalActions.openModal(props => {
|
||||||
console.log(props);
|
|
||||||
return React.createElement(ErrorBoundary, {
|
return React.createElement(ErrorBoundary, {
|
||||||
onError: () => {
|
onError: () => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
@ -200,7 +199,9 @@ export default class Modals {
|
||||||
cancelText: cancelText,
|
cancelText: cancelText,
|
||||||
onConfirm: onConfirm,
|
onConfirm: onConfirm,
|
||||||
onCancel: onCancel,
|
onCancel: onCancel,
|
||||||
onCloseCallback: () => {if (props?.transitionState === 1) onClose?.()}
|
onCloseCallback: () => {
|
||||||
|
if (props?.transitionState === 1) onClose?.();
|
||||||
|
}
|
||||||
}, props), React.createElement(ErrorBoundary, {}, content)));
|
}, props), React.createElement(ErrorBoundary, {}, content)));
|
||||||
}, {modalKey: key});
|
}, {modalKey: key});
|
||||||
return modalKey;
|
return modalKey;
|
||||||
|
|
Loading…
Reference in New Issue