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 48ce084 commit d8fd3fcCopy full SHA for d8fd3fc
src/components/link.js
@@ -84,16 +84,12 @@ export default {
84
85
function guardEvent (e) {
86
// don't redirect with control keys
87
- /* istanbul ignore if */
88
if (e.metaKey || e.ctrlKey || e.shiftKey) return
89
// don't redirect when preventDefault called
90
91
if (e.defaultPrevented) return
92
// don't redirect on right click
93
94
if (e.button !== undefined && e.button !== 0) return
95
// don't redirect if `target="_blank"`
96
97
if (e.target && e.target.getAttribute) {
98
const target = e.target.getAttribute('target')
99
if (/\b_blank\b/i.test(target)) return
0 commit comments