Closed
Description
Describe the bug
When you type in the search box, the highlighted matches (underlined text) do not reflect what you've actually typed.
Reproduction
- Go to https://vitepress.dev/
- Click on search box
- Type "focus"
ISSUE: "focus" should be highlighted in purple, but only "foc" is highlighted (see screenshot).
Expected behavior
The expected behavior is for the entered text to be highlighted.
System Info
System:
OS: Linux 5.0 undefined
CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Memory: 0 Bytes / 0 Bytes
Shell: 1.0 - /bin/jsh
Binaries:
Node: 18.20.3 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 10.2.3 - /usr/local/bin/npm
pnpm: 8.15.6 - /usr/local/bin/pnpm
npmPackages:
vitepress: latest => 1.3.4
Additional context
Validations
- Check if you're on the latest VitePress version.
- Follow our Code of Conduct
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.