diff --git a/components/index.html b/components/index.html index 2e3532c..517f14a 100644 --- a/components/index.html +++ b/components/index.html @@ -2240,6 +2240,7 @@ duration: 300, easing: 'ease' }) + getRef(pageId).parentNode.scroll(0, 0) const targetListItem = document.querySelector(`.list__item[href="#${pageId}"]`) targetListItem.classList.add('list__item--active') if (firstLoad && window.innerWidth > 640 && targetListItem.getBoundingClientRect().top > getRef('side_nav').getBoundingClientRect().height) {