A drawer component for React.
fix: pass children to overlay (#420)
Emil Kowalski3c968004bf20
diff --git a/src/index.tsx b/src/index.tsxindex 8dde005..8a2bf36 100644--- a/src/index.tsx+++ b/src/index.tsx@@ -663,7 +663,7 @@ export function Root({}export const Overlay = React.forwardRef<HTMLDivElement, React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>>(- function ({ children, ...rest }, ref) {+ function ({ ...rest }, ref) {const { overlayRef, snapPoints, onRelease, shouldFade, isOpen } = useDrawerContext();const composedRef = useComposedRefs(ref, overlayRef);const hasSnapPoints = snapPoints && snapPoints.length > 0;