Skip to content

Commit

Permalink
fix: add onRelease in Drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
yougyung committed May 16, 2024
1 parent a2a861e commit e6af5d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/ui/view/molecule/drawer/drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Drawer = ({ children, drawerKey, onClose, className }: DrawerProps) => {
const { isOpen, toggle } = useDialog(drawerKey, onClose);

return (
<DrawerPrimitive.Root open={isOpen}>
<DrawerPrimitive.Root open={isOpen} onRelease={toggle}>
<DrawerPrimitive.Portal>
<DrawerPrimitive.Overlay
onClick={toggle}
Expand Down

0 comments on commit e6af5d1

Please sign in to comment.