From 9c42fc7cf4edb84582fa9192746416d280eecffb Mon Sep 17 00:00:00 2001 From: mhk76 Date: Thu, 16 Mar 2023 14:22:25 +0100 Subject: [PATCH] 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 --- ui/widgets/tooltip.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/widgets/tooltip.js b/ui/widgets/tooltip.js index 9f634e35601..ec9f6754e76 100644 --- a/ui/widgets/tooltip.js +++ b/ui/widgets/tooltip.js @@ -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";