mirror of https://github.com/apache/superset.git
display tooltip when disabled (#16837)
This commit is contained in:
parent
55e2872dbf
commit
04f7ecad1c
|
@ -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 ? <span>{button}</span> : button}
|
||||
</Tooltip>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue