mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
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:
parent
988b73d20f
commit
9c42fc7cf4
@ -361,6 +361,7 @@ $.widget( "ui.tooltip", {
|
|||||||
|
|
||||||
if ( !event || event.type === "mouseover" ) {
|
if ( !event || event.type === "mouseover" ) {
|
||||||
events.mouseleave = "close";
|
events.mouseleave = "close";
|
||||||
|
events.mousedown = "close";
|
||||||
}
|
}
|
||||||
if ( !event || event.type === "focusin" ) {
|
if ( !event || event.type === "focusin" ) {
|
||||||
events.focusout = "close";
|
events.focusout = "close";
|
||||||
|
Loading…
Reference in New Issue
Block a user