CoreUI PRO for React v5.29.2 - Search Button Key Event Fix

CoreUI PRO for React v5.29.2 - Search Button Key Event Fix

We are pleased to announce the release of CoreUI PRO for React v5.29.2. This patch release makes CSearchButton ignore key events that carry no key, instead of throwing an error on any page that renders it.


Speed up your responsive apps and websites with fully-featured, ready-to-use open-source admin panel templates—free to use and built for efficiency.


How to Update

To update your project to CoreUI PRO for React v5.29.2, follow these steps:

  1. Open your project’s package.json.
  2. Locate the @coreui/react-pro entry under dependencies and update the version number to 5.29.2.
  3. Save your changes to the package.json file.
  4. In your project’s root directory, run the update command appropriate for your package manager:
    • For npm users, execute npm install.
    • For yarn users, execute yarn install.
    • For pnpm users, execute pnpm install.

You can also download the latest PRO packages from CoreUI Downloads.

What’s New

Bug Fixes

  • CSearchButton: Chrome autofill and some browser extensions dispatch keydown and keyup events that are not KeyboardEvents, so event.key is undefined. CSearchButton listens for its keyboard shortcut on the whole document with native listeners, so one such event anywhere on the page threw a TypeError. Both document handlers now return early for an event without a key.

The other PRO components read the key from React’s synthetic keyboard events, which always carry a string, so they were not affected.

Dependency Updates

  • @coreui/coreui-pro updated to ^5.29.2.

For the latest package files and update access, visit CoreUI Downloads.

Subscribe to our newsletter
Get early information about new products, product updates and blog posts.