Update DocSectionNav.vue

pull/3841/head
mertsincan 2023-04-01 12:13:05 +01:00
parent e8d50fd372
commit 6cd41325d1
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ export default {
methods: {
onScroll() {
if (!this.isScrollBlocked) {
const labels = document.querySelectorAll(':is(h1,h2,h3).doc-section-label');
const labels = [...document.querySelectorAll(':is(h1,h2,h3).doc-section-label')].filter((el) => DomHandler.isVisible(el));
const windowScrollTop = DomHandler.getWindowScrollTop();