Sheet component won't close after being opened even with open and onOpenChange props #3428
Unanswered
Mohamed-1954
asked this question in
Q&A
Replies: 1 comment
-
you can wrap your link with
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have this component, It's a shadcn/ui sheet component that I want to make it opened and closed when the button is clicked, the button I mean is the one that has the onClick event and takes the toggleOpen function, but once the sheet is opened it won't close until I click outside the Sheet or I press the close button inside the SheetContent.
Things I tried:
Here is the code to the component:
Beta Was this translation helpful? Give feedback.
All reactions