Close call options popup menu when option has been selected (#30052)

To avoid locking the user into the popup due to focus lock clash

Fixes #29985

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2025-05-29 14:26:54 +01:00
committed by GitHub
parent 7eb1433f32
commit 7eb133286b

View File

@@ -178,7 +178,10 @@ export default function RoomHeader({
aria-label={label}
children={children}
className="mx_RoomHeader_videoCallOption"
onClick={(ev) => videoCallClick(ev, option)}
onClick={(ev) => {
setMenuOpen(false);
videoCallClick(ev, option);
}}
Icon={VideoCallIcon}
onSelect={() => {} /* Dummy handler since we want the click event.*/}
/>