mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
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:
@@ -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",
|
||||
|
||||
3
ui/jquery.ui.tooltip.js
vendored
3
ui/jquery.ui.tooltip.js
vendored
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user