diff --git a/superset-frontend/src/components/Button/index.tsx b/superset-frontend/src/components/Button/index.tsx index 5199d26f4..7daf0eb5b 100644 --- a/superset-frontend/src/components/Button/index.tsx +++ b/superset-frontend/src/components/Button/index.tsx @@ -224,7 +224,9 @@ export default function Button(props: ButtonProps) { id={`${kebabCase(tooltip)}-tooltip`} title={tooltip} > - {button} + {/* this ternary wraps the button in a span so that the tooltip shows up + when the button is disabled. */} + {disabled ? {button} : button} ); }