Skip to content

Commit 10bd660

Browse files
committed
Work around LG-5601
1 parent 4a5afa1 commit 10bd660

File tree

1 file changed

+2
-1
lines changed
  • packages/compass-components/src/components/modals

1 file changed

+2
-1
lines changed

packages/compass-components/src/components/modals/modal.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ function UnwrappedModal({
6868
)}
6969
{...props}
7070
>
71-
<Body as="div">{children}</Body>
71+
{/* Rendering conditionally on `open` as a workaround for LG-5601 */}
72+
{props.open && <Body as="div">{children}</Body>}
7273
</LeafyGreenModal>
7374
);
7475
}

0 commit comments

Comments
 (0)