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
This commit is contained in:
mhk76 2023-03-16 14:22:25 +01:00 committed by GitHub
parent 988b73d20f
commit 9c42fc7cf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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";