File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
packages/compass-components/src/components/modals Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ function ConfirmationModal({
1414> ) : React . ReactElement {
1515 return (
1616 < LeafyGreenConfirmationModal { ...props } >
17- < Body as = "div" > { children } </ Body >
17+ { props . open && < Body as = "div" > { children } </ Body > }
1818 </ LeafyGreenConfirmationModal >
1919 ) ;
2020}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ function MarketingModal({
1111} : React . ComponentProps < typeof LeafyGreenMarketingModal > ) : React . ReactElement {
1212 return (
1313 < LeafyGreenMarketingModal { ...props } >
14- < Body as = "div" > { children } </ Body >
14+ { props . open && < Body as = "div" > { children } </ Body > }
1515 </ LeafyGreenMarketingModal >
1616 ) ;
1717}
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments