Closed tiakindele closed 3 years ago
Right now, if you click on a section when in the archive page, it doesn't scroll down to the selected area.
// layout.js useEffect(() => { const id = location.hash.substring(1); // location.hash without the '#' setTimeout(() => { const el = document.getElementById(id || 'hero'); if (el) { el.scrollIntoView(); el.focus(); } }, 0); handleExternalLinks(); }, []);
Right now, if you click on a section when in the archive page, it doesn't scroll down to the selected area.