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:
committed by
GitHub
parent
7eb1433f32
commit
7eb133286b
@@ -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.*/}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user