fix: make profile dropdown buttons clickable (pointerdown→click)

pointerdown on document was hiding the dropdown before click could fire
on My Account / My Spaces / My Wallets buttons. Switching to click lets
stopPropagation in item handlers prevent premature close.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-04-05 14:29:20 -04:00
parent 9897bf6517
commit a43bc3b3ee
1 changed files with 1 additions and 1 deletions

View File

@ -684,7 +684,7 @@ export class RStackIdentity extends HTMLElement {
dropdown.classList.toggle("open"); dropdown.classList.toggle("open");
}); });
document.addEventListener("pointerdown", () => dropdown.classList.remove("open")); document.addEventListener("click", () => dropdown.classList.remove("open"));
this.#shadow.querySelectorAll("[data-action]").forEach((el) => { this.#shadow.querySelectorAll("[data-action]").forEach((el) => {
el.addEventListener("click", (e) => { el.addEventListener("click", (e) => {