CoreUI PRO for Vue v5.22.2 - Key Event Fix for Autofill and Extensions

CoreUI PRO for Vue v5.22.2 - Key Event Fix for Autofill and Extensions

We are pleased to announce the release of CoreUI PRO for Vue v5.22.2. This patch release makes CMultiSelect, CAutocomplete, CChipInput and CSearchButton ignore key events that carry no key, instead of throwing an error.


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 Vue v5.22.2, follow these steps:

  1. Open your project’s package.json.
  2. Locate the @coreui/vue-pro entry under dependencies and update the version number to 5.22.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

  • Key events without a key: Chrome autofill and some browser extensions dispatch keydown and keyup events that are not KeyboardEvents, so event.key is undefined. CMultiSelect, CAutocomplete and CChipInput read event.key.length and threw a TypeError on such an event. They now skip the check when the event has no key.
  • CSearchButton: CSearchButton listens for its keyboard shortcut on the whole document, so one such event anywhere on a page with a search button threw an error. Its document handlers now return early for an event without a key.
  • CMultiSelect: The handler on the underlying native <select> now returns before calling preventDefault() for an event without a key, so that event keeps its default behavior.

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.