Permalink
Browse files

fix(link): ensure target is vue component before #emit

  • Loading branch information...
pi0 committed Aug 21, 2017
1 parent 86533fa commit 200f31b0072ac2f2005639fb4dc966dc2057d4e7
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/components/link.js
@@ -118,7 +118,7 @@ function clickHandlerFactory({ disabled, tag, href, suppliedHandler, parent }) {
} else {
parent.$root.$emit("clicked::link", e);
if (isRouterLink) {
if (isRouterLink && e.target.__vue__) {
e.target.__vue__.$emit("click", e);
}
if (typeof suppliedHandler === "function") {

0 comments on commit 200f31b

Please sign in to comment.