-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Tooltip exception: Unable to get property 'prop' of undefined or null reference. #2785
Comments
Fix to issue angular-ui#2785.
I'm not sure what you mean. Can you create a Plunker and describe the steps to reproduce this issue? |
http://plnkr.co/edit/KpsACpxZ2LbdbEzHEFPl?p=preview |
Fix to issue angular-ui/bootstrap#2785.
@VitalyVoroshilov , @chrisirhc any update on this? I experience this one frequently -- steps to replicate are extremely, extremely hard to pin down. |
+1 |
+1 for this too |
Pretty sure this is IE10 only |
I've been able to reproduce this in Chrome and Firefox. After some digging, I'm fairly sure this change, available in |
I cannot reproduce this, as shown in this Plunker based off of current master. Closing as resolved - if this is still an issue, feel free to comment here or create a new ticket. |
I am still getting a similar error with a fairly new version (0.13.4) Stacktrace:
Given the local variable name for null is ttScope and the tooltip directive creates its own scope with that property, I am fairly certain this error is caused by an asynchronous piece of tooltip code trying to access a scope that angular has already destroyed (which is somewhat hard to reproduce). I will update to .14.3 and see if the error still happens (thought it only happens randomly once or twice a day during development). |
@tsclaus, please also try against a build from |
This still occurrs in v2.1.3. The problem is that the if (!tooltip) check is outside of the $timeout() code. It needs to be moved into the $timeout code to ensure this error doesn't occur |
If the second tooltip issued to show at the time of the first tooltip show an error will occur.
Error:
name: TypeError
message: Unable to get property 'prop' of undefined or null reference
stack:
TypeError: Unable to get property 'prop' of undefined or null reference
at positionElements (http://localhost:61722/Components/bower_components/angular-bootstrap/ui-bootstrap-tpls.js:920:9)
at positionTooltip (http://localhost:61722/Components/bower_components/angular-bootstrap/ui-bootstrap-tpls.js:2490:15)
at Anonymous function (http://localhost:61722/Components/bower_components/angular-bootstrap/ui-bootstrap-tpls.js:2525:51)
at wrappedCallback (http://localhost:61722/Components/bower_components/angular/angular.js:11319:15)
at Anonymous function (http://localhost:61722/Components/bower_components/angular/angular.js:11405:11)
at $eval (http://localhost:61722/Components/bower_components/angular/angular.js:12412:9)
at $digest (http://localhost:61722/Components/bower_components/angular/angular.js:12224:15)
at $apply (http://localhost:61722/Components/bower_components/angular/angular.js:12516:13)
at hideTooltipBind (http://localhost:61722/Components/bower_components/angular-bootstrap/ui-bootstrap-tpls.js:2536:15)
at handle (http://localhost:61722/Components/bower_components/jquery/jquery.js:4993:5)
The text was updated successfully, but these errors were encountered: