Skip to content

Search highlighted matches do not reflect typed text #4209

Closed
@thdoan

Description

@thdoan

Describe the bug

When you type in the search box, the highlighted matches (underlined text) do not reflect what you've actually typed.

Reproduction

  1. Go to https://vitepress.dev/
  2. Click on search box
  3. 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

image

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleupstreamRelated to the dependencies

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions