Skip to content

Commit efdc442

Browse files
committed
Issue 195. Tooltip no longer hides upon mouseover when same tooltip element is in use
1 parent efdfaad commit efdc442

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/tooltip/tooltip.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@
252252
});
253253
}
254254

255-
tip.data("__set", true);
255+
// bind again for same tip element
256+
if (!conf.tip) tip.data("__set", true);
256257
}
257258

258259
return self;

test/tooltip/index.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ <h3>Data-tooltip attribute</h3>
7575

7676
<script>
7777
$("#attr a").tooltip({
78-
78+
delay: 50
7979
});
8080
</script>
8181

@@ -119,9 +119,7 @@ <h3>Same tip element</h3>
119119
<script>
120120
$("#same a").tooltip({
121121
tip: '#sametip',
122-
delay: 50,
123-
predelay: 110,
124-
effect: 'fade'
122+
effect: 'fade'
125123
});
126124
</script>
127125

0 commit comments

Comments
 (0)