Skip to content

Commit

Permalink
Issue #0000 feat: Modal bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Arif-tekdi-technologies committed Nov 21, 2024
1 parent 25333b4 commit c9a7466
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/components/ConfirmationModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ const ConfirmationModal: React.FC<ConfirmationModalProps> = ({
return (
<Modal
open={modalOpen}
onClose={handleCloseModal}
onClose={(event, reason) => {
if (reason !== "backdropClick") {
handleCloseModal();
}
}}
aria-labelledby="confirmation-modal-title"
aria-describedby="confirmation-modal-description"
>
Expand Down
6 changes: 5 additions & 1 deletion src/components/SimpleModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ const SimpleModal: React.FC<SimpleModalProps> = ({
return (
<Modal
open={open}
onClose={onClose}
onClose={(event, reason) => {
if (reason !== "backdropClick") {
onClose();
}
}}
aria-labelledby="child-modal-title"
aria-describedby="child-modal-description"
>
Expand Down

0 comments on commit c9a7466

Please sign in to comment.