specify onRequestClose on modals w/ burnettk cullerton
This commit is contained in:
parent
e2a2e42712
commit
e931f41250
|
@ -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