Skip to content

Commit

Permalink
Fix #2695: Tooltip disable pointer events except non autohide (#2701)
Browse files Browse the repository at this point in the history
Co-authored-by: mertsincan <[email protected]>
  • Loading branch information
melloware and mertsincan authored Mar 29, 2022
1 parent 3e259d1 commit 7fd6a1e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/lib/tooltip/Tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ export const Tooltip = forwardRef((props, ref) => {
elementRef.current.style.left = '';
elementRef.current.style.top = '';

// GitHub #2695 disable pointer events when autohiding
if (isAutoHide()) {
elementRef.current.style.pointerEvents = 'none';
}

if (isMouseTrack(currentTargetRef.current) && !containerSize.current) {
containerSize.current = {
width: DomHandler.getOuterWidth(elementRef.current),
Expand Down

0 comments on commit 7fd6a1e

Please sign in to comment.