Skip to content

Commit 9734526

Browse files
committed
Fix: Remove tabindex prop
1 parent 938d082 commit 9734526

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/skip-to.vue

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<a class="vue-skip-to" :href="to" :tabindex="tabindex">
2+
<a class="vue-skip-to" :href="to">
33
<slot>{{ text }}</slot>
44
</a>
55
</template>
@@ -16,10 +16,6 @@ export default {
1616
to: {
1717
type: String,
1818
default: '#main'
19-
},
20-
tabindex: {
21-
type: [Number, null],
22-
default: null
2319
}
2420
},
2521
@@ -40,7 +36,7 @@ export default {
4036
4137
focusElement (id) {
4238
if (!id) return
43-
let element = window.document.getElementById(id)
39+
const element = window.document.getElementById(id)
4440
if (element) {
4541
if (!/^(a|select|input|button|textarea)/i.test(element.tagName.toLowerCase())) {
4642
element.setAttribute('tabindex', -1)

0 commit comments

Comments
 (0)