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

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

Fixes #29985


(cherry picked from commit 7eb133286b)

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
ElementRobot
2025-05-29 09:29:48 -05:00
committed by GitHub
parent ee87b0e2d2
commit 713cd472c6

View File

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