DocSectionNav parent scroll problem fixed

pull/3711/head
Bahadır Sofuoğlu 2023-03-08 14:54:09 +03:00
parent c373646a86
commit bcbc2249a7
1 changed files with 1 additions and 1 deletions

View File

@ -84,8 +84,8 @@ export default {
label && label.parentElement.scrollIntoView({ block: 'start', behavior }); label && label.parentElement.scrollIntoView({ block: 'start', behavior });
}, },
onButtonClick(doc) { onButtonClick(doc) {
this.activeId = doc.id;
setTimeout(() => { setTimeout(() => {
this.activeId = doc.id;
this.scrollToLabelById(doc.id, 'smooth'); this.scrollToLabelById(doc.id, 'smooth');
this.isScrollBlocked = true; this.isScrollBlocked = true;
}, 1); }, 1);