Skip to content

Conversation

@LouisMazel
Copy link
Contributor

@LouisMazel LouisMazel commented Jun 10, 2025

Description

Hi,

image

Fix error in handleSearchHotKey when event.key is undefined

I'm using VitePress 2.0.0-alpha.5.

This PR fixes a runtime error that occurs when event.key is undefined:

Uncaught TypeError: Cannot read properties of undefined (reading 'toLowerCase')
    at handleSearchHotKey (VPNavBarSearch.vue:56:18)

Tip

The author of this PR can publish a preview release by commenting /publish below.

@brc-dd brc-dd merged commit 21fcecc into vuejs:main Jun 10, 2025
9 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants