From bcbc2249a73d97125db2548ce84f83c38e63cd6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Sofuo=C4=9Flu?= Date: Wed, 8 Mar 2023 14:54:09 +0300 Subject: [PATCH] DocSectionNav parent scroll problem fixed --- layouts/doc/DocSectionNav.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/doc/DocSectionNav.vue b/layouts/doc/DocSectionNav.vue index 46d143879..49358e8fc 100644 --- a/layouts/doc/DocSectionNav.vue +++ b/layouts/doc/DocSectionNav.vue @@ -84,8 +84,8 @@ export default { label && label.parentElement.scrollIntoView({ block: 'start', behavior }); }, onButtonClick(doc) { - this.activeId = doc.id; setTimeout(() => { + this.activeId = doc.id; this.scrollToLabelById(doc.id, 'smooth'); this.isScrollBlocked = true; }, 1);