Tooltip: Change the default items selector to exclude disabled elements. Fixes #8661 - Tooltip doesn't hide on disabled anchor element [IE only].

This commit is contained in:
Scott González 2012-10-12 20:26:47 -04:00
parent 94221c4e5b
commit bd3a348776
2 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,7 @@ TestHelpers.commonWidgetTests( "tooltip", {
content: function() {},
disabled: false,
hide: true,
items: "[title]",
items: "[title]:not([disabled])",
position: {
my: "left+15 center",
at: "right center",

View File

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