Focus back on status after context menu closed

pull/97/head
Lim Chee Aun 2023-04-20 17:51:40 +08:00
rodzic 0d0e091f35
commit 12957c8ea7
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -714,7 +714,10 @@ function Status({
state={isContextMenuOpen ? 'open' : undefined}
anchorPoint={contextMenuAnchorPoint}
direction="right"
onClose={() => setIsContextMenuOpen(false)}
onClose={() => {
setIsContextMenuOpen(false);
statusRef.current?.focus?.();
}}
portal={{
target: document.body,
}}