ui icon indicating copy to clipboard operation
ui copied to clipboard

fix: 🐛 fix the problem of the CommandDialog component

Open Alndaly opened this issue 11 months ago • 2 comments

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 avatar Jan 15 '25 07:01 Alndaly

@Alndaly is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Jan 15 '25 07:01 vercel[bot]

I think you are accidentally importing CommandDialog from cmdk instead of shadcn. The issue does not exist when you import CommandDialog from shadcn

AV3RG avatar Apr 25 '25 20:04 AV3RG