specify onRequestClose on modals w/ burnettk cullerton
This commit is contained in:
parent
a6680b6768
commit
1b175e65b1
|
@ -53,6 +53,7 @@ export default function ButtonWithConfirmation({
|
|||
secondaryButtonText="Cancel"
|
||||
onSecondarySubmit={handleConfirmationPromptCancel}
|
||||
onRequestSubmit={handleConfirmation}
|
||||
onRequestClose={handleConfirmationPromptCancel}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -132,6 +132,7 @@ export default function ReactFormEditor() {
|
|||
secondaryButtonText="Cancel"
|
||||
onSecondarySubmit={handleFileNameCancel}
|
||||
onRequestSubmit={handleFileNameSave}
|
||||
onRequestClose={handleFileNameCancel}
|
||||
>
|
||||
<label>File Name:</label>
|
||||
<span>
|
||||
|
|
Loading…
Reference in New Issue