ui
ui copied to clipboard
fix: 🐛 fix the problem of the CommandDialog component
The CommandDialog component is based on the Dialog component, and the DialogContent in the Dialog component requires the DialogTitle component to be present. However, the CommandDialog currently does not include this component, which results in errors whenever the CommandDialog is used.
`DialogContent` requires a `DialogTitle` for the component to be accessible for screen reader users.
If you want to hide the `DialogTitle`, you can wrap it with our VisuallyHidden component.
For more information, see https://radix-ui.com/primitives/docs/components/dialog
@Alndaly is attempting to deploy a commit to the shadcn-pro Team on Vercel.
A member of the Team first needs to authorize it.
I think you are accidentally importing CommandDialog from cmdk instead of shadcn. The issue does not exist when you import CommandDialog from shadcn