Skip to content

Commit

Permalink
Merge pull request #5055 from matrix-org/t3chguy/fix/14700
Browse files Browse the repository at this point in the history
Fix TextWithTooltip "leaking" tooltip wrappers
  • Loading branch information
t3chguy committed Jul 28, 2020
2 parents f9540dd + e7ec34e commit 0ee30a0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/views/elements/TextWithTooltip.js
Expand Up @@ -47,11 +47,10 @@ export default class TextWithTooltip extends React.Component {
return (
<span onMouseOver={this.onMouseOver} onMouseLeave={this.onMouseLeave} className={this.props.class}>
{this.props.children}
<Tooltip
{this.state.hover && <Tooltip
label={this.props.tooltip}
visible={this.state.hover}
tooltipClassName={this.props.tooltipClass}
className={"mx_TextWithTooltip_tooltip"} />
className={"mx_TextWithTooltip_tooltip"} /> }
</span>
);
}
Expand Down

0 comments on commit 0ee30a0

Please sign in to comment.