Skip to content

Commit

Permalink
fix(theme): activeMatch support regexp (#1754)
Browse files Browse the repository at this point in the history
fixes #1771
  • Loading branch information
satrong authored Jan 7, 2023
1 parent 01ac579 commit 0913e0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/theme-default/components/VPMenuLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const { page } = useData()
<template>
<div class="VPMenuLink">
<VPLink
:class="{ active: isActive(page.relativePath, item.activeMatch || item.link) }"
:class="{ active: isActive(page.relativePath, item.activeMatch || item.link, !!item.activeMatch) }"
:href="item.link"
>
{{ item.text }}
Expand Down

0 comments on commit 0913e0f

Please sign in to comment.