Skip to content

armgit / vaul

Public Imported from GitHub
0

A drawer component for React.

fix: undefined window (#452)

Emil Kowalskib9e44d564a4c
diff --git a/src/index.tsx b/src/index.tsx
index d219eef..b5b5d5f 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -109,7 +109,7 @@ export function Root({
}, TRANSITIONS.DURATION * 1000);
if (o && !modal) {
- window.requestAnimationFrame(() => {
+ requestAnimationFrame(() => {
document.body.style.pointerEvents = 'auto';
});
}