Removed backdrop click on modals

refs https://github.com/TryGhost/Product/issues/3828
This commit is contained in:
Djordje Vlaisavljevic 2023-09-06 13:41:31 +01:00
parent 448e91d916
commit 712da704f7
3 changed files with 3 additions and 0 deletions

View File

@ -91,6 +91,7 @@ const AddRecommendationModal: React.FC<AddRecommendationModalProps> = ({recommen
updateRoute('recommendations'); updateRoute('recommendations');
}} }}
animate={animate ?? true} animate={animate ?? true}
backDropClick={false}
okColor='black' okColor='black'
okLabel={okLabel} okLabel={okLabel}
size='sm' size='sm'

View File

@ -72,6 +72,7 @@ const AddRecommendationModalConfirm: React.FC<AddRecommendationModalProps> = ({r
updateRoute('recommendations'); updateRoute('recommendations');
}} }}
animate={animate ?? true} animate={animate ?? true}
backDropClick={false}
cancelLabel={'Cancel'} cancelLabel={'Cancel'}
dirty={true} dirty={true}
leftButtonProps={leftButtonProps} leftButtonProps={leftButtonProps}

View File

@ -51,6 +51,7 @@ const EditRecommendationModalConfirm: React.FC<AddRecommendationModalProps> = ({
updateRoute('recommendations'); updateRoute('recommendations');
}} }}
animate={animate ?? true} animate={animate ?? true}
backDropClick={false}
cancelLabel={'Cancel'} cancelLabel={'Cancel'}
okColor='black' okColor='black'
okLabel={okLabel} okLabel={okLabel}