From d093e7a73cbe490c422b955f92afec9cd630279d Mon Sep 17 00:00:00 2001 From: Dax Date: Wed, 11 Nov 2026 09:09:34 -0500 Subject: [PATCH] fix(site): show download and install menus again after closing them (#63311) --- services/site/src/component/site/place-menu.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/services/site/src/component/site/place-menu.ts b/services/site/src/component/site/place-menu.ts index e8f81816422..7ac0f2ad25a 100644 --- a/services/site/src/component/site/place-menu.ts +++ b/services/site/src/component/site/place-menu.ts @@ -14,8 +14,15 @@ let anchors = 0 * carousel's track, cuts it off, and stays tied to its box by CSS anchor positioning as the page * scrolls, cut where it passes under the header, which stays on top. A browser without anchor * positioning keeps it in its box. + * + * A menu placed before goes back to its box first: still fixed to the window it has no box to measure + * against, and closing it (closeMenus) may have taken it out of the top layer already. */ export function placeMenu(menu: HTMLElement) { + if (menu.popover) { + menu.removeAttribute("popover") + menu.removeAttribute("style") + } const box = menu.offsetParent if (!(box instanceof HTMLElement)) return // Measured as laid out, not as drawn: the opening animation scales the menu from a corner.