fix(home): close the node card dropdowns after a pick

The delay test button still keeps an open list open.
This commit is contained in:
wonfen
2026-11-21 01:55:01 +08:00
parent 498648cca0
commit 68ecad4ef7
2 changed files with 8 additions and 1 deletions
@@ -443,6 +443,13 @@ const PersistentSelect = ({
role="listbox"
aria-labelledby={labelId}
variant="selectedMenu"
onClick={(event) => {
// A disabled option passes its click to the list itself.
if (!(event.target as Element).closest('[role="option"]'))
return
onOpenChange(false)
anchorRef.current?.focus({ preventScroll: true })
}}
>
{open && renderOptions()}
</MenuList>