diff --git a/apps/client/src/components/Dialog/Dialog.js b/apps/client/src/components/Dialog/Dialog.js index 0d0c4f2f3..21334a41b 100644 --- a/apps/client/src/components/Dialog/Dialog.js +++ b/apps/client/src/components/Dialog/Dialog.js @@ -58,65 +58,72 @@ export default function ResponsiveDialog(props) { typeof onVisibilityChanged === "function" && onVisibilityChanged(open); return ( - { - e.stopPropagation(); - }} - > - {headerText && ( - {headerText} - )} - - {children} - {useLegacyNonMarkdownRenderer === true ? ( - - ) : ( - + open && ( + { + e.stopPropagation(); + }} + > + {headerText && ( + {headerText} )} + + {children} + {useLegacyNonMarkdownRenderer === true ? ( + + ) : ( + + )} - {prompt && ( -
{ - e.preventDefault(); - props.onClose(promptText); - return false; - }} - > - { - setPromptText(e.target.value); + {prompt && ( + { + e.preventDefault(); + props.onClose(promptText); + return false; }} - margin="normal" - autoFocus={true} - /> - - )} -
- - - {abortText && ( - - )} - -
+ {abortText && ( + + )} + +
+ ) ); }