diff --git a/src/index.tsx b/src/index.tsx index 16df95c0..9c9697ea 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -673,7 +673,7 @@ function Root({ } const Overlay = React.forwardRef>( - function ({ children, ...rest }, ref) { + function (props, ref) { const { overlayRef, snapPoints, onRelease, shouldFade, isOpen, visible } = useDrawerContext(); const composedRef = useComposedRefs(ref, overlayRef); const hasSnapPoints = snapPoints && snapPoints.length > 0; @@ -686,7 +686,7 @@ const Overlay = React.forwardRef ); },