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 f422e89 commit c955be3Copy full SHA for c955be3
src/directives/link.js
@@ -20,6 +20,14 @@ export default function (Vue) {
20
)
21
return
22
}
23
+ // no need to handle click if link expects to be opened
24
+ // in a new window/tab.
25
+ /* istanbul ignore if */
26
+ if (this.el.tagName === 'A' &&
27
+ this.el.getAttribute('target') === '_blank') {
28
+ return
29
+ }
30
+ // handle click
31
let router = vm.$route.router
32
this.handler = (e) => {
33
// don't redirect with control keys
0 commit comments