Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

navbar has problems with activematch #4332

Open
4 tasks done
BlazeSnow opened this issue Nov 2, 2024 · 0 comments
Open
4 tasks done

navbar has problems with activematch #4332

BlazeSnow opened this issue Nov 2, 2024 · 0 comments
Labels
bug: pending triage Maybe a bug, waiting for confirmation

Comments

@BlazeSnow
Copy link

Describe the bug

无论在Examples的activematch输入任何内容,test被高亮时,Examples总是会高亮。

Whenever you enter anything in the Examples' activematch, the Examples will always be highlighted when test is highlighted.

      {
        text: 'Examples',
        activeMatch: '/whatever/',
        items: [
          {
            text: 'test',
            activeMatch: '/test/',
            link: '/test/',
          },
          {
            text: 'another',
            activeMatch: '/another/',
            link: '/another/',
          }
        ]
      },

Reproduction

https://blazesnow-vitepressissue.vercel.app/

https://github.com/BlazeSnow/VitepressIssue

Expected behavior

最上一级的activematch应当匹配组内的activematch,而不是输入任何值都可以使最上一级的activematch高亮。

The uppermost level of activematch should match the activematch in the group, rather than entering any value that will make the uppermost level of activematch highlighted.

System Info

System:
    OS: Windows 11 10.0.26100
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700H
    Memory: 6.28 GB / 15.69 GB
  Binaries:
    Node: 23.1.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.9.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (129.0.2792.65)
    Internet Explorer: 11.0.26100.1882
  npmPackages:
    vitepress: ^1.4.2 => 1.4.3

Additional context

No response

Validations

@BlazeSnow BlazeSnow added the bug: pending triage Maybe a bug, waiting for confirmation label Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: pending triage Maybe a bug, waiting for confirmation
Projects
None yet
Development

No branches or pull requests

1 participant