npm / cmdk
cmdk
What changed in cmdk 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-23.
3 breaking3 new APIs and options1 performance2 behavior and defaults6 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initcmdk 115 changes
Breaking changes 3
aria-disabled and aria-selected are now set to false instead of undefined, so CSS selectors should match attribute values rather than attribute presence.
Rendering Command.List is now mandatory; omitting it causes an error.
Values passed to Command.Item and received in onSelect are now case sensitive, though they are still trimmed.
New APIs and options 3
Added the asChild prop to all component parts.
Added a Command prop to disable item selection via pointer.
Added the keywords prop to Command.Item.
Performance 1
Fixed excessive re-renders when using forceMount.
Behavior and default changes 2
Command.List can now be rendered in a portal.
Keyboard navigation is now allowed even when the text input is not focused.
Fixes and other changes 6
Fixed Command.Empty not appearing on first render.
ESM support was fixed via a new exports field.
Fixed item sorting not working correctly.
Fixed a DOM error caused by quotes in the search query.
The selected item is now scrolled into view only on first render and via keyboard.
Fixed the labels for the suggestions list and loading progressbar.