We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e45597c commit 8ca360fCopy full SHA for 8ca360f
app/components/Code/Viewer.vue
@@ -62,10 +62,11 @@ watch(
62
function handleImportLinkNavigate() {
63
if (!codeRef.value) return
64
65
- const anchors = codeRef.value.querySelectorAll('a.import-link')
+ const anchors = codeRef.value.querySelectorAll<HTMLAnchorElement>('a.import-link')
66
anchors.forEach(anchor => {
67
// NOTE: We do not need to remove previous listeners because we re-create the entire HTML content on each html update
68
anchor.addEventListener('click', event => {
69
+ if (event.metaKey || event.altKey || event.ctrlKey || event.shiftKey) return
70
const href = anchor.getAttribute('href')
71
if (href) {
72
event.preventDefault()
0 commit comments