From bd3a348776bf50da53d17f1574efd5538ce9de4f Mon Sep 17 00:00:00 2001 From: Scott González Date: Fri, 12 Oct 2012 20:26:47 -0400 Subject: Tooltip: Change the default items selector to exclude disabled elements. Fixes #8661 - Tooltip doesn't hide on disabled anchor element [IE only]. --- ui/jquery.ui.tooltip.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js index 980b43868..0f69e898f 100644 --- a/ui/jquery.ui.tooltip.js +++ b/ui/jquery.ui.tooltip.js @@ -49,7 +49,8 @@ $.widget( "ui.tooltip", { return $( this ).attr( "title" ); }, hide: true, - items: "[title]", + // Disabled elements have inconsistent behavior across browsers (#8661) + items: "[title]:not([disabled])", position: { my: "left+15 center", at: "right center", -- cgit v1.2.3