Skip to content

Commit 744d8f9

Browse files
committed
fix: Check component name in updated mixin
1 parent 1bbbbc1 commit 744d8f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/composables/useVueAxe.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default function useVueAxe (options) {
2929
if (axeOptions.auto) {
3030
app.mixin({
3131
updated () {
32-
if (this.$.type.disableAxeAudit || this.$.type.name.toLowerCase().indexOf('transition') !== -1) return
32+
if (this.$.type.disableAxeAudit || (this.$.type.name && this.$.type.name.toLowerCase().indexOf('transition') !== -1)) return
3333
axe.loading.value = true
3434
clearTimeout(timeout)
3535
timeout = setTimeout(axe.run, 2500)

0 commit comments

Comments
 (0)