Skip to content
Snippets Groups Projects
Commit 259be8d1 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

focus hash id after render

parent 2c1488c1
No related branches found
No related tags found
No related merge requests found
......@@ -124,6 +124,11 @@ export default {
ArticleFooter,
InflectionButton
},
mounted: function() {
if (this.$route.hash == "#"+ this.title_id) {
document.getElementById(this.title_id).focus()
}
},
methods: {
parse_definitions: function(node) {
console.log(node)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment