Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

"TypeError: Unable to get property 'prop' of undefined or null reference" from bootstrap-ui-tpls #6397

Open
josephhelmrich opened this issue Jan 4, 2017 · 1 comment

Comments

@josephhelmrich
Copy link

josephhelmrich commented Jan 4, 2017

Bug description:

The positionTooltip function in UIBS contains this line at the top of the method to check for null tooltip objects:
if (!tooltip || !tooltip.html()) { return; }

But then it uses tooltip inside a $timeout without checking for nulls. I am getting about 100 "Unable to get property 'property' of undefined or null reference" exceptions per day from my app which has about 4000 users.

Link to minimally-working plunker that reproduces the issue:

I can only produce this in IE and not 100% of the time. If I moving my mouse rapidly back and forth between the two buttons that show tooltips within 10 seconds or so I usually get an exception in the console.
http://plnkr.co/edit/neahF8CxbhgQj17P3OkS?p=preview

Version of Angular, UIBS, and Bootstrap

Angular: v1.5.8

UIBS: 2.1.3

Bootstrap: 3.3.7

@icfantv
Copy link
Contributor

icfantv commented Jan 28, 2017

The issue is because you have a delay on your tooltips opening and the trigger is a mouseenter event. The issue goes away when you remove that delay. If you feel you need that delay, we should have a discussion as to why. I'm not saying this isn't a bug, but I am wondering if your use case is not correct.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants