Skip to content

Commit

Permalink
fix modal behaviour when rendered inside a clickable element
Browse files Browse the repository at this point in the history
  • Loading branch information
Joosakur committed Dec 3, 2024
1 parent ef2953d commit 1d1e978
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/lib-components/molecules/modals/BaseModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export default React.memo(function BaseModal(props: Props) {
className={props.className}
zIndex={props.zIndex}
data-qa={props['data-qa']}
onClick={(e) => e.stopPropagation()}
>
<ModalContainer
mobileFullScreen={props.mobileFullScreen}
Expand Down Expand Up @@ -184,6 +185,7 @@ const ModalContainer = styled.div<{
`

const ModalWrapper = styled.div<{ zIndex?: number }>`
cursor: default;
align-items: center;
display: flex;
flex-direction: column;
Expand Down

0 comments on commit 1d1e978

Please sign in to comment.