Skip to content

Commit

Permalink
fix(sheet): Animate correctly in React 18
Browse files Browse the repository at this point in the history
  • Loading branch information
mlaursen committed Apr 1, 2022
1 parent 736e3b4 commit ca27b19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sheet/src/Sheet.tsx
Expand Up @@ -163,7 +163,7 @@ export const Sheet = forwardRef<HTMLDivElement, SheetProps>(function Sheet(
temporary={temporary}
onExited={() => {
onExited?.();
setHidden(true);
setHidden(!temporary);
}}
portal={portal}
overlayHidden={overlayHidden}
Expand Down

0 comments on commit ca27b19

Please sign in to comment.