Attempting to resulve issue
All checks were successful
Build, Test, and Publish (to Private NPM Registry) UI Components Library / publish (push) Successful in 1m0s

This commit is contained in:
Alan Bridgeman 2026-07-08 20:28:19 -05:00
parent eb5b7699a7
commit 46a3394aac

View file

@ -178,9 +178,11 @@ document.addEventListener('DOMContentLoaded', () => {
document.querySelector(`.event-page-sect#${initialSect}`).classList.add('active-sect'); document.querySelector(`.event-page-sect#${initialSect}`).classList.add('active-sect');
} }
else { else {
if(document.querySelector('.event-page-sidebar-link.active') !== null && document.querySelector('.event-page-sidebar-link.active').getAttribute('href') !== null) {
// If no hash is present, set it based on the default active section (if any) // If no hash is present, set it based on the default active section (if any)
window.location.hash = document.querySelector('.event-page-sidebar-link.active').getAttribute('href'); window.location.hash = document.querySelector('.event-page-sidebar-link.active').getAttribute('href');
} }
}
if (!customElements.get('ba-spa-sidebar')) { if (!customElements.get('ba-spa-sidebar')) {
customElements.define('ba-spa-sidebar', SPASidebar); customElements.define('ba-spa-sidebar', SPASidebar);