specify onRequestClose on modals w/ burnettk cullerton

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

View File

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

View File

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

View File

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