Skip to content

Commit 2f2c796

Browse files
committed
fix: remove optional check
1 parent 24ae6c0 commit 2f2c796

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-components/react-drawer/library/src/components/OverlayDrawer/OverlayDrawer.types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,5 @@ export type OverlayDrawerProps = ComponentProps<OverlayDrawerSlots> &
5555
export type OverlayDrawerState = ComponentState<OverlayDrawerInternalSlots> &
5656
Required<DrawerBaseState> &
5757
Pick<OverlayDrawerProps, 'mountNode'> & {
58-
hasMountNodeElement?: boolean;
58+
hasMountNodeElement: boolean;
5959
};

packages/react-components/react-drawer/library/src/components/OverlayDrawer/useOverlayDrawerStyles.styles.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const useOverlayDrawerStyles_unstable = (state: OverlayDrawerState): Over
4747
const resetStyles = useDrawerResetStyles();
4848
const rootStyles = useDrawerRootStyles();
4949

50-
const absoluteStyles = !!state.hasMountNodeElement && rootStyles.absolute;
50+
const absoluteStyles = state.hasMountNodeElement && rootStyles.absolute;
5151
const backdrop = state.root.backdrop as React.HTMLAttributes<HTMLDivElement> | undefined;
5252

5353
state.root.className = mergeClasses(

0 commit comments

Comments
 (0)