diff --git a/docs/assets/javascript/elements/uxdot-sidenav.js b/docs/assets/javascript/elements/uxdot-sidenav.js index e5e88d190b..b1b1fdfef3 100644 --- a/docs/assets/javascript/elements/uxdot-sidenav.js +++ b/docs/assets/javascript/elements/uxdot-sidenav.js @@ -367,6 +367,10 @@ class UxdotSideNavDropdown extends LitElement { } async #onClick(event) { + const { target } = event; + if (target instanceof HTMLAnchorElement) { + return; + } event.preventDefault(); this.expanded = !this.expanded; this.querySelector('details').toggleAttribute('open', this.expanded);