type: rm unnecessary button type (#51332)

This commit is contained in:
lijianan 2024-10-22 09:57:14 +08:00 committed by GitHub
parent f456147e4d
commit 1776d741ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -212,7 +212,7 @@ const InternalCompoundedButton = React.forwardRef<
e.preventDefault();
return;
}
(props.onClick as React.MouseEventHandler<HTMLButtonElement | HTMLAnchorElement>)?.(e);
props.onClick?.(e);
},
[props.onClick, innerLoading, mergedDisabled],
);
@ -239,7 +239,7 @@ const InternalCompoundedButton = React.forwardRef<
const sizeFullName = useSize((ctxSize) => customizeSize ?? compactSize ?? groupSize ?? ctxSize);
const sizeCls = sizeFullName ? sizeClassNameMap[sizeFullName] ?? '' : '';
const sizeCls = sizeFullName ? (sizeClassNameMap[sizeFullName] ?? '') : '';
const iconType = innerLoading ? 'loading' : icon;