mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-21 16:55:25 +03:00
Fix set focus on status, make status itself scroll unwillingly
This commit is contained in:
parent
01a028d1c5
commit
8e46da5e80
1 changed files with 2 additions and 1 deletions
|
@ -719,7 +719,8 @@ function Status({
|
|||
direction="right"
|
||||
onClose={() => {
|
||||
setIsContextMenuOpen(false);
|
||||
statusRef.current?.focus?.();
|
||||
// statusRef.current?.focus?.();
|
||||
statusRef.current?.closest('[tabindex]')?.focus?.();
|
||||
}}
|
||||
portal={{
|
||||
target: document.body,
|
||||
|
|
Loading…
Reference in a new issue