Packages

cmdk

1.1.1 · 14 Mar 2025MIT51M / weekRepositoryHomepagenpmAtom feed

Your version

0.2.1

30 Jan 2024Where it was published

In short

8 new6 fixed5 internal

Release note

Been a while—this is a hefty release. Sorry for the delay.

What's New

  • Bring in local dependency of command-score with vastly improved filtering performance by default

  • Add defaultValue prop to <Command />

  • Add forceMount prop to <Command.Item /> and <Command.Group />

  • Adds overlayClassName and contentClassName props to <Command.Dialog />:

  • Add data-disabled to <Command.Item />

  • Add aria-activedescendant in <Command.Input />

  • Use offsetHeight to calculate list height

  • Add option for disabling vim bindings

What's Fixed

  • Fixed a bug where using controlled item values would accidentally become uncontrolled if there are no results

  • Fixed items on mobile are now correctly selected on tap

  • Fixed a bug where focus would jump back to the first item instead of respecting the controlled value @joaom00

  • Fixed the props for the <Command.Loading /> to indicate it spreads onto a div element

  • Fixed pressing [Enter] to select an item while in the middle of an IME composition

  • Fixes a bug where backspacing would not properly reveal items that didn't have their value explicitly set

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.