Skip to content

Commit 9c42fc7

Browse files
authored
Close tooltip if target is removed in click event
Fixes issue #2153 Tooltip stays visible if it's target element is removed by clicking it
1 parent 988b73d commit 9c42fc7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ui/widgets/tooltip.js

+1
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ $.widget( "ui.tooltip", {
361361

362362
if ( !event || event.type === "mouseover" ) {
363363
events.mouseleave = "close";
364+
events.mousedown = "close";
364365
}
365366
if ( !event || event.type === "focusin" ) {
366367
events.focusout = "close";

0 commit comments

Comments
 (0)