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);