Skip to content

armgit / vaul

Public Imported from GitHub
0

A drawer component for React.

Typo

emilkowalski52873b07f734
diff --git a/src/index.tsx b/src/index.tsx
index 632df75..a20ab9c 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -536,7 +536,12 @@ function Root({
}, [isOpen]);
return (
- <DialogPrimitive.Root open={isOpen} onOpenChange={onOpenChange}>
+ <DialogPrimitive.Root
+ open={isOpen}
+ onOpenChange={(o) => {
+ setIsOpen(o);
+ }}
+ >
<DrawerContext.Provider
value={{
drawerRef,