Fix set focus on status, make status itself scroll unwillingly

This commit is contained in:
Lim Chee Aun 2023-04-24 21:56:13 +08:00
parent 01a028d1c5
commit 8e46da5e80

View file

@ -719,7 +719,8 @@ function Status({
direction="right" direction="right"
onClose={() => { onClose={() => {
setIsContextMenuOpen(false); setIsContextMenuOpen(false);
statusRef.current?.focus?.(); // statusRef.current?.focus?.();
statusRef.current?.closest('[tabindex]')?.focus?.();
}} }}
portal={{ portal={{
target: document.body, target: document.body,