diff --git a/src/index.tsx b/src/index.tsx index 9535bda6..d219eefe 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -100,7 +100,7 @@ export function Root({ onChange: (o: boolean) => { onOpenChange?.(o); - if (!o) { + if (!o && !nested) { restorePositionSetting(); } diff --git a/test/src/app/nested-drawers/page.tsx b/test/src/app/nested-drawers/page.tsx index 94427122..a2fd3bc5 100644 --- a/test/src/app/nested-drawers/page.tsx +++ b/test/src/app/nested-drawers/page.tsx @@ -5,7 +5,7 @@ import { Drawer } from 'vaul'; export default function Page() { return (
- +