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

[Bug report] #200

Closed
smz8023 opened this issue Jun 6, 2024 · 1 comment
Closed

[Bug report] #200

smz8023 opened this issue Jun 6, 2024 · 1 comment
Labels
bug Something isn't working package:theme-default

Comments

@smz8023
Copy link

smz8023 commented Jun 6, 2024

Description

https://github.com/vuepress/ecosystem/blob/v2.0.0-rc.35/themes/theme-default/src/client/components/VPSidebarItems.vue
当前vue文件中的选择器错误:
// get the active sidebar item DOM, whose href equals to the current route
const activeSidebarItem = document.querySelector(
.vp=sidebar a.vp-sidebar-item[href="${route.path}${hash}"],
)
.vp=sidebar应该为.vp-sidebar
image

Reproduction

https://stackblitz.com/edit/vuepress-fzwxtj?file=package.json

Used Package Manager

npm

System Info

版本:v2.0.0-rc.35
@Mister-Hope
Copy link
Member

Already fixed in 0a29075

Thanks for reporting anyway.

@Mister-Hope Mister-Hope added the bug Something isn't working label Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working package:theme-default
Projects
None yet
Development

No branches or pull requests

2 participants