Hide tile overlay immediately when closed
This commit is contained in:
parent
b75db97c26
commit
fa8d081079
@ -50,19 +50,21 @@ function TilesOverlay({ modalSize, children }) {
|
|||||||
|
|
||||||
const group = groups.find((group) => group.id === openGroupId);
|
const group = groups.find((group) => group.id === openGroupId);
|
||||||
|
|
||||||
|
if (!openGroupId) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{openGroupId && (
|
<Box
|
||||||
<Box
|
sx={{
|
||||||
sx={{
|
position: "absolute",
|
||||||
position: "absolute",
|
width: "100%",
|
||||||
width: "100%",
|
height: "100%",
|
||||||
height: "100%",
|
top: 0,
|
||||||
top: 0,
|
}}
|
||||||
}}
|
bg="overlay"
|
||||||
bg="overlay"
|
/>
|
||||||
/>
|
|
||||||
)}
|
|
||||||
<ReactResizeDetector
|
<ReactResizeDetector
|
||||||
handleWidth
|
handleWidth
|
||||||
handleHeight
|
handleHeight
|
||||||
|
Loading…
Reference in New Issue
Block a user