Skip to content

Commit 45a5a24

Browse files
committed
Tooltip: Store the title in ui-tooltip-title data only if the element has a title.
1 parent 56de22e commit 45a5a24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.tooltip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ $.widget( "ui.tooltip", {
9999
return;
100100
}
101101

102-
if ( !target.data( "ui-tooltip-title" ) ) {
102+
if ( target.attr( "title" ) ) {
103103
target.data( "ui-tooltip-title", target.attr( "title" ) );
104104
}
105105

0 commit comments

Comments
 (0)