From 6cd41325d1af6581920ee98c50829e9ee5f4cd78 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Sat, 1 Apr 2023 12:13:05 +0100 Subject: [PATCH] Update DocSectionNav.vue --- components/doc/DocSectionNav.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/doc/DocSectionNav.vue b/components/doc/DocSectionNav.vue index 45938f049..0f0b8a57f 100644 --- a/components/doc/DocSectionNav.vue +++ b/components/doc/DocSectionNav.vue @@ -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();