specify onRequestClose on modals w/ burnettk cullerton

This commit is contained in:
jasquat 2022-11-16 14:55:36 -05:00
parent a6680b6768
commit 1b175e65b1
3 changed files with 5 additions and 0 deletions

View File

@ -53,6 +53,7 @@ export default function ButtonWithConfirmation({
secondaryButtonText="Cancel"
onSecondarySubmit={handleConfirmationPromptCancel}
onRequestSubmit={handleConfirmation}
onRequestClose={handleConfirmationPromptCancel}
/>
);
};

View File

@ -215,6 +215,7 @@ export default function ProcessModelEditDiagram() {
secondaryButtonText="Cancel"
onSecondarySubmit={handleFileNameCancel}
onRequestSubmit={handleFileNameSave}
onRequestClose={handleFileNameCancel}
>
<label>File Name:</label>
<span>
@ -607,6 +608,7 @@ export default function ProcessModelEditDiagram() {
primaryButtonText="Close"
onRequestSubmit={handleScriptEditorClose}
size="lg"
onRequestClose={handleScriptEditorClose}
>
<Editor
height={500}
@ -644,6 +646,7 @@ export default function ProcessModelEditDiagram() {
modalHeading="Edit Markdown"
primaryButtonText="Close"
onRequestSubmit={handleMarkdownEditorClose}
onRequestClose={handleMarkdownEditorClose}
size="lg"
>
<MDEditor

View File

@ -132,6 +132,7 @@ export default function ReactFormEditor() {
secondaryButtonText="Cancel"
onSecondarySubmit={handleFileNameCancel}
onRequestSubmit={handleFileNameSave}
onRequestClose={handleFileNameCancel}
>
<label>File Name:</label>
<span>