fix: scrolling to heading if it wasn't available
This commit is contained in:
parent
50c3bcd793
commit
1818ed3648
1 changed files with 3 additions and 0 deletions
|
@ -595,6 +595,9 @@ export default {
|
|||
}
|
||||
},
|
||||
scrollToHeading() {
|
||||
if(!this.$refs?.heading?.$el) {
|
||||
return
|
||||
}
|
||||
this.$refs.heading.$el.scrollIntoView({block: 'center'})
|
||||
},
|
||||
setActiveFields() {
|
||||
|
|
Loading…
Reference in a new issue