Render nothin rather than an empty div

This commit is contained in:
Germain Souquet 2021-05-19 11:57:32 +01:00
parent 382a08bdb1
commit 8f945ce846

View file

@ -73,7 +73,7 @@ export default class AccessibleTooltipButton extends React.PureComponent<IToolti
tooltipClassName={classNames("mx_AccessibleTooltipButton_tooltip", tooltipClassName)} tooltipClassName={classNames("mx_AccessibleTooltipButton_tooltip", tooltipClassName)}
label={tooltip || title} label={tooltip || title}
yOffset={yOffset} yOffset={yOffset}
/> : <div />; /> : null;
return ( return (
<AccessibleButton <AccessibleButton
{...props} {...props}