Skip to content

Commit

Permalink
Close tooltip if target is removed in click event
Browse files Browse the repository at this point in the history
Fixes issue #2153 Tooltip stays visible if it's target element is removed by clicking it
  • Loading branch information
mhk76 committed Mar 16, 2023
1 parent 988b73d commit 9c42fc7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/widgets/tooltip.js
Expand Up @@ -361,6 +361,7 @@ $.widget( "ui.tooltip", {

if ( !event || event.type === "mouseover" ) {
events.mouseleave = "close";
events.mousedown = "close";
}
if ( !event || event.type === "focusin" ) {
events.focusout = "close";
Expand Down

0 comments on commit 9c42fc7

Please sign in to comment.