Skip to content

Commit 0eea882

Browse files
committed
fix: Using indexOf in prop validation to support IE11
1 parent 087a967 commit 0eea882

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VueSkipToList.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default {
3636
return Array.isArray(val) &&
3737
val.every(({ anchor, label }) => (
3838
typeof anchor === 'string' &&
39-
anchor.startsWith('#') &&
39+
anchor.indexOf('#') === 0 &&
4040
typeof String(label) === 'string'
4141
))
4242
}

0 commit comments

Comments
 (0)