Open Alicehhhmm opened 2 weeks ago
same goes for Sheet component, that is used in Sidebar thanks for the workaround @Alicehhhmm !
I guess that ideally the place that should be fixed is the implementation of those components. In a normal use of Dialog or Sheet you would put a Title and/or description as a children, but in SideBar the Sheet is used without it, so you put the workaround in Sidebar and not at Dialog.
Like this (at ui/sidebar.tsx):
Describe the bug
Current Behavior
Error message about using
@radix-ui/react-dialog
library forshadcn components
Affected component/components
command
How to reproduce
ERROR
Dialog abstraction throwsDialogContent requires a DialogTitle since last update
Expected behavior
There is no error when using
shadcn components
associated with@radix-ui/react-dialog
for example: commandMy local solution
components/ui/dialog
correlation lssues
#4302 #5474 #5698 #5746
radix-ui lssues
#2986
Codesandbox/StackBlitz link
https://ui.shadcn.com/docs/components/command
Logs
No response
System Info
Before submitting