Skip to content

Commit e2e72fd

Browse files
committed
docs: add comment why component can't be replaced
1 parent eeeb6b6 commit e2e72fd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/components/Code/Viewer.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ watch(
6767
:style="{ '--line-digits': lineDigits }"
6868
aria-hidden="true"
6969
>
70+
<!-- This needs to be a native <a> element, because `LinkBase` (or specifically `NuxtLink`) does not seem to work when trying to prevent default behavior (jumping to the anchor) -->
7071
<a
7172
v-for="lineNum in lineNumbers"
7273
:id="`L${lineNum}`"

0 commit comments

Comments
 (0)