Skip to content

Commit b0df864

Browse files
committed
fix(Link): prevent type bind on <a>
1 parent 969b02d commit b0df864

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/runtime/components/elements/Link.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<component
33
:is="as"
44
v-if="!to"
5+
:type="type"
56
:disabled="disabled"
67
v-bind="$attrs"
78
:class="active ? activeClass : inactiveClass"
@@ -42,6 +43,10 @@ export default defineComponent({
4243
type: String,
4344
default: 'button'
4445
},
46+
type: {
47+
type: String,
48+
default: 'button'
49+
},
4550
disabled: {
4651
type: Boolean,
4752
default: null

0 commit comments

Comments
 (0)