Closed danielgindi closed 7 years ago
Thank you, I'll take a look when I can.
I have the same error when integrating tooltipster in ember and run acceptance tests...
I'm really booked these days, I'll be available in February for this. It will probably a quick fix though, I just need to take a break.
Ok you got me ;) Try with the latest commits please. Thank you.
This seems to have fixed it! Thanks :-)
It does not automatically show the tooltip under the new element behind the mouse pointer, but at least it does not crash :-)
The issue happened because, when the scroll happened, you had already removed the origin from the DOM (without destroying the tooltip first). That may help you understand what actually happens.
Tooltipster fails on this line:
https://github.com/iamceege/tooltipster/blob/09bac138723db25eb00635f87104f1aab0038220/dist/js/tooltipster.core.js#L928
When using in a virtual scrolling container. Which means that it is rapidly initiated and destroyed on row elements as the user scrolls. It appears that if the mouse is over the row with the tooltips while scrolling with the mousewheel - the tooltip starts initiating, adds the element to the DOM for measuring, gets destroyed, and then reaching that line of code where it traversed to the parent but has no parent.