Skip to content

Commit

Permalink
fix(Link): prevent type bind on <a>
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Jan 11, 2024
1 parent 969b02d commit b0df864
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/runtime/components/elements/Link.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<component
:is="as"
v-if="!to"
:type="type"
:disabled="disabled"
v-bind="$attrs"
:class="active ? activeClass : inactiveClass"
Expand Down Expand Up @@ -42,6 +43,10 @@ export default defineComponent({
type: String,
default: 'button'
},
type: {
type: String,
default: 'button'
},
disabled: {
type: Boolean,
default: null
Expand Down

0 comments on commit b0df864

Please sign in to comment.