Skip to content
Snippets Groups Projects
Unverified Commit fd468337 authored by Anton Georgiev's avatar Anton Georgiev Committed by GitHub
Browse files

Merge pull request #6423 from KDSBrowne/2.2-fix-double-tooltip

Fix double tooltips being rendered per button
parents 98443ca4 13b13d15
No related branches found
No related tags found
No related merge requests found
...@@ -51,6 +51,8 @@ class Tooltip extends Component { ...@@ -51,6 +51,8 @@ class Tooltip extends Component {
onHide: this.onHide, onHide: this.onHide,
wait: Tooltip.wait, wait: Tooltip.wait,
touchHold: true, touchHold: true,
size: 'small',
distance: 1,
}; };
this.tooltip = Tippy(`#${this.tippySelectorId}`, options); this.tooltip = Tippy(`#${this.tippySelectorId}`, options);
} }
...@@ -80,7 +82,6 @@ class Tooltip extends Component { ...@@ -80,7 +82,6 @@ class Tooltip extends Component {
const WrappedComponentBound = React.cloneElement(WrappedComponent, { const WrappedComponentBound = React.cloneElement(WrappedComponent, {
...restProps, ...restProps,
title,
id: this.tippySelectorId, id: this.tippySelectorId,
className: cx(children.props.className, className), className: cx(children.props.className, className),
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment