Skip to content

Commit

Permalink
Removed the onFocus and onBlur since it is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
adfaris authored and cchaos committed May 15, 2020
1 parent d425bd1 commit ea1a6fa
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/components/tool_tip/tool_tip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,6 @@ export class EuiToolTip extends Component<Props, State> {
}
};

hasFocusMouseMoveListener = () => {
this.hideToolTip();
window.removeEventListener('mousemove', this.hasFocusMouseMoveListener);
};

onMouseOut = (e: ReactMouseEvent<HTMLSpanElement, MouseEvent>) => {
// Prevent mousing over children from hiding the tooltip by testing for whether the mouse has
// left the anchor for a non-child.
Expand Down Expand Up @@ -331,8 +326,8 @@ export class EuiToolTip extends Component<Props, State> {
* element has focus.
*/}
{cloneElement(children, {
onFocus: this.onFocus,
onBlur: this.onBlur,
onFocus: this.showToolTip,
onBlur: this.hideToolTip,
...(visible && { 'aria-describedby': this.state.id }),
})}
</span>
Expand Down

0 comments on commit ea1a6fa

Please sign in to comment.