-
Notifications
You must be signed in to change notification settings - Fork 6.7k
bug(tooltip): in dialog appended to body remains after closing dialog #710
Comments
Ha! Nice finding! I think we should be able to fix this by listening to the DOM |
@ajoslin I think this is a valid bug in the current tooltip, I'm working on this one. |
Ah woops, I thought it got merged already. my bad. |
So this one is really nasty... It turns out that this is a bug in AngularJS, in the jQLite, to be more specific. In this routine: function JQLiteUnbind(element, type, fn) {
var events = JQLiteExpandoStore(element, 'events'),
handle = JQLiteExpandoStore(element, 'handle');
if (!handle) return; //no listeners registered
if (isUndefined(type)) {
forEach(events, function(eventHandler, type) {
removeEventListenerFn(element, type, eventHandler);
delete events[type];
});
} else {
if (isUndefined(fn)) {
removeEventListenerFn(element, type, events[type]);
delete events[type];
} else {
arrayRemove(events[type], fn);
}
}
} if you try to unbind an event that wasn't previously bound (and you pass in both I will try to submit a patch to AngularJS but in the meantime we need to find a way of patching it in our library... |
So, the only remaining problem here is that the $dialog doesn't clean up after itself in therms of scopes :-( But I'm going to handle this in the $dialog rewrite: #441 |
Hi,
a tooltip on a dialog close button remains after closing dialog if tooltip is appended to body:
http://jsfiddle.net/tak_aryelle/AAJZg/
The text was updated successfully, but these errors were encountered: