Merge pull request #5016 from matrix-org/t3chguy/tooltips2

Use mouseleave instead of mouseout for hover events. Fix tooltip flicker
This commit is contained in:
Michael Telatynski 2020-07-20 15:19:32 +01:00 committed by GitHub
commit 9e6532e46e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 29 additions and 24 deletions

View file

@ -26,7 +26,7 @@ const MIN_TOOLTIP_HEIGHT = 25;
interface IProps {
// Class applied to the element used to position the tooltip
className: string;
className?: string;
// Class applied to the tooltip itself
tooltipClassName?: string;
// Whether the tooltip is visible or hidden.
@ -121,7 +121,7 @@ export default class Tooltip extends React.Component<IProps> {
public render() {
// Render a placeholder
return (
<div className={this.props.className} >
<div className={this.props.className}>
</div>
);
}