Comments (9)
I've just found something.
Before updating my table content, I remove all the tipsies : $(".tipsy").remove();
It seems to work.
It's not ideal, because If I hover an element with a tipsy, and don't move my pointer, each time my content is updated the tipsy disappear. I have to move my pointer a bit to make it appear again.
from tipsy.
I can confirm this issue. There should be a way to hook into jquery to remove tipsy() elements when their trigerring elements are removed. But other tooltip libraries don't do this, so its possible.
from tipsy.
Yep I'd like to fix this. Do you have any examples of said tooltip libs? Tipsy appends tooltips to document.body
- I suspect other libs might append the tooltip to the pointee.
Cheers,
-J
from tipsy.
Good example to create zombie tooltips:
Create a button that ajax's a replacement of itself. With a live tipsy on it. When it ajax's in, the old tooltip stays there and looses its events. Quite tricky to explain.
from tipsy.
Using $(".tipsy").remove();
seems to do the trick since a div with a "tipsy" class is appended to the body of the doc when the tooltip is shown.
Just be sure you don't use a "tipsy" class elsewhere (i.e. call your tooltip's something like "toolTip")
from tipsy.
+1 vote for this. Came across this issue today.
from tipsy.
I was able to work around this by triggering a "mouseout" event before my AJAX call. Looking in tipsy,js, it closes the hover after 100 milliseconds, so I added a timeout of 150 to give it time to close before replacing the element and running AJAX call. Zombie tooltips went away ;)
function updateBoolean(where, what) {
var field_name = $(what).attr("name");
if($(what).is(":checked")) {
var value=1;
} else {
var value=0;
}
var loading = $("");
$(what).trigger("mouseout");
setTimeout(function(){
$(what).replaceWith(loading);
$.ajax({
type: "POST",
url: "#####################",
data: "##############################",
cache: false,
success: function(){
loading.replaceWith($(what));
}
});},
150);
}
from tipsy.
from tipsy.
Was able to bypass this issue by calling
`````` $('a[rel=tipsy]').trigger("mouseout");just before sending the AJAX request ($.ajax->beforeSend) and then adding back the tipsy "engine" on the page on response
$('a[rel=tipsy]').tipsy({fade: true, gravity: 'w'});```
from tipsy.
Related Issues (20)
- mouseover buggy in lte-ie8
- tooltip at disabled elements? HOT 1
- Option Gravity
- [enhancement] Add missing bower.json.
- autoBounds doesn't take tipsy's own size into account!
- Pull requests are not merged or closed HOT 1
- Browser support? HOT 1
- Don't work with submit button HOT 3
- Commit 23994f5 broke B/C that $obj.tipsy('tip') doesn't return $tip anymore
- Not working on first page load HOT 1
- add main option in bower file
- Tooltip width decreases on multiple hovers. HOT 6
- The variable pos has an undefined width in Internet Explorer because offsetWidth is not cross-browser.
- Add bower link to the package
- Tipsy forcing "Update layer Tree"
- Chrome deprecating SVG offsetWidth and offsetHeight
- Mouseover with Ctrl, Alt and Shift keys?
- Jquery tipsy not working with jQuery 3.2.1 HOT 2
- http://onehackoranother.com/projects/jquery/tipsy/ This page isnβt working
- Remove hover event only for touch devices
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tipsy.