@abgov/web-components 1.17.0-alpha.114 → 1.17.0-alpha.115

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -31658,6 +31658,7 @@ function instance$d($$self, $$props, $$invalidate) {
31658
31658
  onMount(async () => {
31659
31659
  await tick();
31660
31660
  getChildren();
31661
+ setCurrentUrl();
31661
31662
  addEventListeners();
31662
31663
  });
31663
31664
  onDestroy(() => {
@@ -31669,6 +31670,7 @@ function instance$d($$self, $$props, $$invalidate) {
31669
31670
  if (slotChildren.length === 0) return;
31670
31671
  _sideMenuLinks = slotChildren.filter((el) => el.tagName === "A").map((el) => {
31671
31672
  el.classList.remove("current");
31673
+ el.addEventListener("click", setCurrentUrl);
31672
31674
  return el;
31673
31675
  });
31674
31676
  _rootEl.addEventListener("sidemenugroup:mounted", handleSideMenuGroupMount);
@@ -31710,9 +31712,6 @@ function instance$d($$self, $$props, $$invalidate) {
31710
31712
  observer = null;
31711
31713
  }
31712
31714
  window.removeEventListener("popstate", setCurrentUrl);
31713
- if (_rootEl) {
31714
- _rootEl.removeEventListener("sidemenugroup:mounted", handleSideMenuGroupMount);
31715
- }
31716
31715
  }
31717
31716
  function div_binding($$value) {
31718
31717
  binding_callbacks[$$value ? "unshift" : "push"](() => {