We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fc41bc commit b6cda3dCopy full SHA for b6cda3d
ui/jquery.ui.tooltip.js
@@ -83,14 +83,16 @@ $.widget( "ui.tooltip", {
83
}
84
85
// if we have a title, clear it to prevent the native tooltip
86
+ // we do this before the disabled check to prevent native tooltips
87
+ // even when disabled
88
+ // TODO: the above doesn't work since ._bind() does a disabled check
89
// we have to check first to avoid defining a title if none exists
90
// (we don't want to cause an element to start matching [title])
91
// TODO: document why we don't use .removeAttr()
92
if ( target.is( "[title]" ) ) {
93
target.attr( "title", "" );
94
95
- // TODO: why is this check after we clear the title?
96
if ( this.options.disabled ) {
97
return;
98
0 commit comments