-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: update cmdk breaking changes #3268
Conversation
@ObjectJosh is attempting to deploy a commit to the shadcn-pro Team on Vercel. A member of the Team first needs to authorize it. |
thanks you @ObjectJosh. Tried your proposed changes on my little project, works nicely for my usecase. |
@@ -81,26 +82,28 @@ export function ComboboxDemo() { | |||
<Command> | |||
<CommandInput placeholder="Search framework..." /> | |||
<CommandEmpty>No framework found.</CommandEmpty> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think CommandEmpty
should be inside CommandList
@@ -64,26 +65,28 @@ export default function ComboboxDemo() { | |||
<Command> | |||
<CommandInput placeholder="Search framework..." /> | |||
<CommandEmpty>No framework found.</CommandEmpty> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
👋 Thanks for making the changes! |
@coolbaluk Currently waiting for it to get merged. Not sure if the proposed changes above by @darrenswhite ar e correct. Would like a second opinion, thanks. |
5013
shadcn ***@***.***> schrieb am Mo., 5. Aug. 2024, 12:22:
… Closed #3268 <#3268>.
—
Reply to this email directly, view it on GitHub
<#3268 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/BIO77COUUYPFIKLZDPEGARDZP5G7TAVCNFSM6AAAAABFPAOUBSVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTG43DEMBSGE2DKNY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Overview
cmdk
v1.0.0 released some breaking changesThis PR fixes @shadcn's usage of
cmdk
's Command component for the shadcn Combobox component.cmdk
v0.2.1 -> v1.0.0data-[selected=true]
(see release notes above)Fixes #3213 #3051 #3047 #3024 #3021 #3012 #2944 #3256
Before:
After: