mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 12:39:49 +08:00
type: rm unnecessary button type (#51332)
This commit is contained in:
parent
f456147e4d
commit
1776d741ce
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user