fix: anchor links - use MouseEvent.currentTarget (#4236)

Co-authored-by: Mark <mark@mhack.io>
This commit is contained in:
bavis-m 2021-09-11 14:05:14 -07:00 committed by GitHub
parent 9f19543488
commit b3d9a183ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -579,7 +579,7 @@ export default {
el.onclick = ev => { el.onclick = ev => {
ev.preventDefault() ev.preventDefault()
ev.stopPropagation() ev.stopPropagation()
this.$vuetify.goTo(decodeURIComponent(ev.target.hash), this.scrollOpts) this.$vuetify.goTo(decodeURIComponent(ev.currentTarget.hash), this.scrollOpts)
} }
}) })
}) })