diff --git a/components/button/button.tsx b/components/button/button.tsx
index 22bda7b867..8ca7f0cc1a 100644
--- a/components/button/button.tsx
+++ b/components/button/button.tsx
@@ -83,7 +83,7 @@ const InternalCompoundedButton = React.forwardRef<
loading = false,
prefixCls: customizePrefixCls,
type,
- danger,
+ danger = false,
shape = 'default',
size: customizeSize,
styles,
@@ -220,7 +220,7 @@ const InternalCompoundedButton = React.forwardRef<
[`${prefixCls}-loading`]: innerLoading,
[`${prefixCls}-two-chinese-chars`]: hasTwoCNChar && mergedInsertSpace && !innerLoading,
[`${prefixCls}-block`]: block,
- [`${prefixCls}-dangerous`]: !!danger,
+ [`${prefixCls}-dangerous`]: danger,
[`${prefixCls}-rtl`]: direction === 'rtl',
},
compactItemClassnames,
@@ -250,7 +250,7 @@ const InternalCompoundedButton = React.forwardRef<
);
@@ -308,7 +308,7 @@ const InternalCompoundedButton = React.forwardRef<
if (!isUnBorderedButtonType(mergedType)) {
buttonNode = (
-
+
{buttonNode}
);