Skip to content

Commit

Permalink
Fix primefaces#2695: Tooltip disable pointer events except non autohide
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Mar 28, 2022
1 parent 47dbd66 commit 5bf3225
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 @@ -210,6 +210,11 @@ export class Tooltip extends Component {
this.containerEl.style.left = '';
this.containerEl.style.top = '';

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

if (this.isMouseTrack(this.currentTarget) && !this.containerSize) {
this.containerSize = {
width: DomHandler.getOuterWidth(this.containerEl),
Expand Down

0 comments on commit 5bf3225

Please sign in to comment.