From 266d3cceb7a85104a1dcba4330d3a14469f85de6 Mon Sep 17 00:00:00 2001 From: bluecloud <96812901+pitb2022@users.noreply.github.com> Date: Tue, 23 Jan 2024 16:02:47 +0800 Subject: [PATCH] fix(Drawer): fix z-index error --- src/components/Drawer/BaseDrawer.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/Drawer/BaseDrawer.tsx b/src/components/Drawer/BaseDrawer.tsx index c84cc4e018..f78ea78a32 100644 --- a/src/components/Drawer/BaseDrawer.tsx +++ b/src/components/Drawer/BaseDrawer.tsx @@ -11,6 +11,7 @@ type BaseDrawerProps = { direction: 'left' | 'right' | 'top' | 'bottom' children?: React.ReactNode duration?: number + zIndex?: number enableOverlay?: boolean className?: string size?: number | string @@ -67,11 +68,13 @@ export const BaseDrawer = ({ direction, children, duration, + zIndex = 100, enableOverlay, className, size, }: BaseDrawerProps) => { const drawerStyles: CSSProperties = { + zIndex: zIndex, transitionDuration: `${duration}ms`, ...getDirectionStyle(direction, size), }