Merge branch 'master' into fix/button-icon-align

This commit is contained in:
afc163 2024-11-15 16:41:42 +08:00 committed by GitHub
commit f02c98f86b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,7 +52,9 @@ const ActionButton: React.FC<ActionButtonProps> = (props) => {
let timeoutId: ReturnType<typeof setTimeout> | null = null;
if (autoFocus) {
timeoutId = setTimeout(() => {
buttonRef.current?.focus();
buttonRef.current?.focus({
preventScroll: true,
});
});
}
return () => {