Skip to content

Commit

Permalink
[Link] Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooya Parsa committed May 9, 2017
1 parent 4dc7fb1 commit 5656434
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions lib/components/link.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
:exact-active-class="exactActiveClass"
:disabled="disabled"
:aria-disabled="disabled ? 'true' : 'false'"
:to="_to"
:to="to"
:exact="exact"
:append="append"
:replace="replace"
Expand All @@ -33,7 +33,7 @@
export default {
computed: {
isRouterLink() {
return this.$router && !this.to;
return this.$router && this.to && !this.disabled;
},
_href() {
if (this.disabled) {
Expand All @@ -49,15 +49,6 @@
if (this.to && typeof this.to === 'string') {
return this.to;
}
},
_to() {
if (this.disabled) {
return null;
}
if (this.to) {
return this.to;
}
}
},
props: {
Expand Down

0 comments on commit 5656434

Please sign in to comment.