Skip to content

Commit

Permalink
[link] emit @click event up
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooya Parsa committed May 10, 2017
1 parent 26c9a8e commit 3e9b860
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/mixins/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ export default {
},
methods: {
linkClick(e) {
this.$root.$emit('clicked::link', this);
if (!this.disabled) {
this.$root.$emit('clicked::link', this);
this.$emit('click');
}

if (this.disabled || (!this.isRouterLink && this._href === '#')) {
e.preventDefault();
Expand Down

0 comments on commit 3e9b860

Please sign in to comment.