File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,12 @@ export default function ChangeConfirmationModal({
5858 } ;
5959
6060 return (
61- < ModalLayer isOpen = { isOpen } onClose = { onCancel } positionRef = { positionRef } >
61+ < ModalLayer
62+ isOpen = { isOpen }
63+ onClose = { onCancel }
64+ positionRef = { positionRef }
65+ closeOnOutsideClick = { submitButtonState !== 'pending' }
66+ >
6267 < div
6368 role = "dialog"
6469 aria-label = { intl . formatMessage ( messages . confirmChangesModalHeader ) }
@@ -131,7 +136,7 @@ export default function ChangeConfirmationModal({
131136 < ModalCloseButton
132137 className = "mr-3"
133138 variant = "outline-primary"
134- disabled = { submitButtonState === 'saving ' }
139+ disabled = { submitButtonState === 'pending' || submitButtonState === 'complete '}
135140 data-testid = "cancel-save-course-changes"
136141 onClick = { ( ) => {
137142 setExpanded ( { added : false , removed : false , updated : false } ) ;
You can’t perform that action at this time.
0 commit comments