|
@@ -62,8 +62,6 @@ const CustomButton = (
|
|
const classes = buttonStyle();
|
|
const classes = buttonStyle();
|
|
const { tooltip, tooltipPlacement, disabled, ...otherProps } = props;
|
|
const { tooltip, tooltipPlacement, disabled, ...otherProps } = props;
|
|
|
|
|
|
- // wrap a span to let disabled elements show tooltip
|
|
|
|
-
|
|
|
|
const btn = (
|
|
const btn = (
|
|
<Button
|
|
<Button
|
|
classes={{
|
|
classes={{
|
|
@@ -98,6 +96,7 @@ const CustomButton = (
|
|
contained: classes.containedBtn,
|
|
contained: classes.containedBtn,
|
|
containedSecondary: classes.containedSecondary,
|
|
containedSecondary: classes.containedSecondary,
|
|
}}
|
|
}}
|
|
|
|
+ disabled={disabled}
|
|
{...otherProps}
|
|
{...otherProps}
|
|
>
|
|
>
|
|
{props.children}
|
|
{props.children}
|