mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-21 16:55:25 +03:00
Focus back on status after context menu closed
This commit is contained in:
parent
0d0e091f35
commit
12957c8ea7
1 changed files with 4 additions and 1 deletions
|
@ -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,
|
||||
}}
|
||||
|
|
Loading…
Reference in a new issue