fix(theme): fix collapse interaction failed when sidebar group set link (#896)

This commit is contained in:
pengzhanbo 2026-04-26 14:05:48 +08:00 committed by GitHub
parent 2bfdec82d7
commit 3265be84a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -108,6 +108,7 @@ function onItemInteraction(e: MouseEvent | Event) {
:aria-label="`${collapsed ? 'Expand' : 'Collapse'} ${item.text}`"
:aria-expanded="!collapsed"
tabindex="-1"
@click.capture="item.link && toggle()"
>
<span class="vpi-chevron-right caret-icon" />
</button>