mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00: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:
parent
94221c4e5b
commit
bd3a348776
@ -3,7 +3,7 @@ TestHelpers.commonWidgetTests( "tooltip", {
|
|||||||
content: function() {},
|
content: function() {},
|
||||||
disabled: false,
|
disabled: false,
|
||||||
hide: true,
|
hide: true,
|
||||||
items: "[title]",
|
items: "[title]:not([disabled])",
|
||||||
position: {
|
position: {
|
||||||
my: "left+15 center",
|
my: "left+15 center",
|
||||||
at: "right 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" );
|
return $( this ).attr( "title" );
|
||||||
},
|
},
|
||||||
hide: true,
|
hide: true,
|
||||||
items: "[title]",
|
// Disabled elements have inconsistent behavior across browsers (#8661)
|
||||||
|
items: "[title]:not([disabled])",
|
||||||
position: {
|
position: {
|
||||||
my: "left+15 center",
|
my: "left+15 center",
|
||||||
at: "right center",
|
at: "right center",
|
||||||
|
Loading…
Reference in New Issue
Block a user