Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions client/packages/lowcoder/src/comps/hooks/drawerComp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,9 @@ const DrawerView = React.memo((
body: {
padding: 0,
background: props.style.background
}
}), [props.style.background]);
},
mask: props.showMask ? undefined : { background: "transparent" }
}), [props.style.background, props.showMask]);

const rootStyle = useMemo(() =>
props.visible.value ? { overflow: "auto", pointerEvents: "auto" } : {},
Expand All @@ -232,7 +233,7 @@ const DrawerView = React.memo((
resizable={resizable}
onResizeStop={onResizeStop}
rootStyle={rootStyle as any}
styles={drawerStyles}
styles={drawerStyles as any}
title={props.title}
$titleAlign={props.titleAlign}
$drawerScrollbar={props.drawerScrollbar}
Expand All @@ -248,7 +249,7 @@ const DrawerView = React.memo((
afterOpenChange={afterOpenChange}
zIndex={Layers.drawer}
maskClosable={props.maskClosable}
mask={props.showMask}
mask={true}
className={clsx(`app-${appID}`, props.className)}
data-testid={props.dataTestId as string}
>
Expand Down
Loading