Skip to content

Commit

Permalink
chore(Modal): revert clicking condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mainframev committed Jan 17, 2024
1 parent 8eb5e6f commit 4d7d61d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/orbit-components/src/Modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,7 @@ const Modal = React.forwardRef<Instance, Props>(
event.target instanceof Element &&
!modalContent.current.contains(event.target) &&
event.target.className &&
(event.target.className.includes("orbit-modal-wrapper") ||
event.target.className.includes("orbit-modal-body"));
/orbit-modal-wrapper|orbit-modal-body/.test(event.target.className);

if (clickedOutside && onClose) onClose(event);

Expand Down

0 comments on commit 4d7d61d

Please sign in to comment.