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:
parent
9897bf6517
commit
a43bc3b3ee
|
|
@ -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) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue