ui icon indicating copy to clipboard operation
ui copied to clipboard

fix: update cmdk breaking changes

Open ObjectJosh opened this issue 1 year ago • 4 comments

Overview

cmdk v1.0.0 released some breaking changes This PR fixes @shadcn's usage of cmdk's Command component for the shadcn Combobox component.

  • Updated cmdk v0.2.1 -> v1.0.0
  • Fixed new selector of data-[selected=true] (see release notes above)
  • Wrapped CommandItems in a CommandList (see release notes above)

Fixes #3213 #3051 #3047 #3024 #3021 #3012 #2944 #3256

Before:

After running npx shadcn-ui@latest add combobox there is a breaking change incompatibility: Screen Shot 2024-03-29 at 3 41 27 PM



Only wrapping in CommandList fixes the above error, but it's defaulted to disabled (unclickable): Screen Shot 2024-03-29 at 3 42 12 PM

After:

⭐ Adding both fixes, works as expected! Screen Shot 2024-03-29 at 3 42 26 PM

ObjectJosh avatar Mar 29 '24 22:03 ObjectJosh

@ObjectJosh 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 Mar 29 '24 22:03 vercel[bot]

thanks you @ObjectJosh. Tried your proposed changes on my little project, works nicely for my usecase.

capaj avatar Apr 04 '24 04:04 capaj

👋

Thanks for making the changes! Any movement on this PR ?

coolbaluk avatar May 08 '24 10:05 coolbaluk

👋

Thanks for making the changes! Any movement on this PR ?

@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.

ObjectJosh avatar May 10 '24 18:05 ObjectJosh

Fixed in https://github.com/shadcn-ui/ui/pull/2626. (also a duplicate of https://github.com/shadcn-ui/ui/pull/2945). If not, feel free to re-open. Thank you.

shadcn avatar Aug 05 '24 10:08 shadcn

5013

shadcn @.***> schrieb am Mo., 5. Aug. 2024, 12:22:

Closed #3268 https://github.com/shadcn-ui/ui/pull/3268.

— Reply to this email directly, view it on GitHub https://github.com/shadcn-ui/ui/pull/3268#event-13762021457, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIO77COUUYPFIKLZDPEGARDZP5G7TAVCNFSM6AAAAABFPAOUBSVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTG43DEMBSGE2DKNY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

nullnullsieben avatar Aug 05 '24 12:08 nullnullsieben