DocSectionNav parent scroll problem fixed
parent
c373646a86
commit
bcbc2249a7
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue