When using a router link without an anchor tag, I am able to ctrl+click the link to open it in a new tab. However, when used with a tag (e.g., tag="td"
), the ctrl+click functionality no longer works. The same issue occurs with clickable elements generated using @click.prevent
.
<router-link :to="`/contracts/${row.id}`">
{{ row.type | initials }}
</router-link>
Ctrl+click works with this setup.
<router-link tag="td" :to="`/contracts/${row.id}`">
{{ row.type | initials }}
</router-link>
<td @click.prevent="someAction()">
{{ row.type | initials }}
</router-link>
Unfortunately, ctrl+click does not work here.
What could be causing this behavior and how can it be addressed?