Attempting to resulve issue
All checks were successful
Build, Test, and Publish (to Private NPM Registry) UI Components Library / publish (push) Successful in 1m0s
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:
parent
eb5b7699a7
commit
46a3394aac
1 changed files with 4 additions and 2 deletions
|
|
@ -178,8 +178,10 @@ 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 no hash is present, set it based on the default active section (if any)
|
if(document.querySelector('.event-page-sidebar-link.active') !== null && document.querySelector('.event-page-sidebar-link.active').getAttribute('href') !== null) {
|
||||||
window.location.hash = document.querySelector('.event-page-sidebar-link.active').getAttribute('href');
|
// 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');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!customElements.get('ba-spa-sidebar')) {
|
if (!customElements.get('ba-spa-sidebar')) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue