Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix TextWithTooltip "leaking" tooltip wrappers
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
  • Loading branch information
t3chguy committed Jul 28, 2020
1 parent 9d6bf36 commit e7ec34e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/views/elements/TextWithTooltip.js
Original file line number Diff line number Diff line change
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 e7ec34e

Please sign in to comment.