kopia lustrzana https://github.com/cheeaun/phanpy
Focus back on status after context menu closed
rodzic
0d0e091f35
commit
12957c8ea7
|
@ -714,7 +714,10 @@ function Status({
|
||||||
state={isContextMenuOpen ? 'open' : undefined}
|
state={isContextMenuOpen ? 'open' : undefined}
|
||||||
anchorPoint={contextMenuAnchorPoint}
|
anchorPoint={contextMenuAnchorPoint}
|
||||||
direction="right"
|
direction="right"
|
||||||
onClose={() => setIsContextMenuOpen(false)}
|
onClose={() => {
|
||||||
|
setIsContextMenuOpen(false);
|
||||||
|
statusRef.current?.focus?.();
|
||||||
|
}}
|
||||||
portal={{
|
portal={{
|
||||||
target: document.body,
|
target: document.body,
|
||||||
}}
|
}}
|
||||||
|
|
Ładowanie…
Reference in New Issue