diff --git a/components/_util/ActionButton.tsx b/components/_util/ActionButton.tsx index 3e6de6e62c..6f28403763 100644 --- a/components/_util/ActionButton.tsx +++ b/components/_util/ActionButton.tsx @@ -52,7 +52,9 @@ const ActionButton: React.FC = (props) => { let timeoutId: ReturnType | null = null; if (autoFocus) { timeoutId = setTimeout(() => { - buttonRef.current?.focus(); + buttonRef.current?.focus({ + preventScroll: true, + }); }); } return () => {