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.
2 parents 3b8f148 + 770d9fa commit f05559dCopy full SHA for f05559d
src/directives/link.js
@@ -21,6 +21,11 @@ export default function (Vue) {
21
}
22
let router = vm.$route.router
23
this.handler = (e) => {
24
+ // don't redirect with control keys
25
+ if (e.metaKey || e.ctrlKey || e.shiftKey) return
26
+ // don't redirect when preventDefault called
27
+ if (e.defaultPrevented) return
28
+
29
if (e.button === 0) {
30
e.preventDefault()
31
if (this.destination != null) {
0 commit comments