{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/6221","repository_url":"https://api.github.com/repos/angular-ui/bootstrap","labels_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/6221/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/6221/comments","events_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/6221/events","html_url":"https://github.com/angular-ui/bootstrap/issues/6221","id":175115333,"number":6221,"title":"TypeError: Cannot read property 'offsetHeight' of null","user":{"login":"rarkins","id":6311784,"avatar_url":"https://avatars.githubusercontent.com/u/6311784?v=3","gravatar_id":"","url":"https://api.github.com/users/rarkins","html_url":"https://github.com/rarkins","followers_url":"https://api.github.com/users/rarkins/followers","following_url":"https://api.github.com/users/rarkins/following{/other_user}","gists_url":"https://api.github.com/users/rarkins/gists{/gist_id}","starred_url":"https://api.github.com/users/rarkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rarkins/subscriptions","organizations_url":"https://api.github.com/users/rarkins/orgs","repos_url":"https://api.github.com/users/rarkins/repos","events_url":"https://api.github.com/users/rarkins/events{/privacy}","received_events_url":"https://api.github.com/users/rarkins/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2016-09-05T18:37:37Z","updated_at":"2016-09-21T13:43:00Z","closed_at":null,"body":"### Bug description:\r\n\r\nI am seeing regular occurrences of this exception in browsers. The sourcemapped stack trace appears to point to code inside the distributed angular-ui bootstrap module:\r\n\r\n```\r\nTypeError: Cannot read property 'offsetHeight' of null\r\n1\r\nFile \"node_modules/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js\" line 4886 col 59 in [anonymous]\r\nvar currentHeight = angular.isDefined(tooltip.offsetHeight) ? tooltip.offsetH...\r\n2\r\nFile \"node_modules/angular/angular.js\" line 19612 col 31 in [anonymous]\r\ndeferred.resolve(fn.apply(null, args));\r\n3\r\nFile \"node_modules/angular/angular.js\" line 5964 col 10 in o\r\nfn.apply(null, sliceArgs(arguments, 1));\r\n4\r\nFile \"node_modules/angular/angular.js\" line 6243 col 7 in [anonymous]\r\ncompleteOutstandingRequest(fn);\r\n```\r\n\r\nIt would appear that `tooltip` in the above is null, which corresponds to: https://github.com/angular-ui/bootstrap/blob/f5ff12c0a4d8fd71791feeb6602d9da7dba41594/src/tooltip/tooltip.js#L164\r\n\r\nOf course, checking for angular being non null is the easy solution but that may be a bandaid to the real problem rather than the cure.\r\n\r\n### Link to minimally-working plunker that reproduces the issue:\r\n\r\nSorry, I am yet to figure out exactly what causes this, other than a suspicion that it's rapidly hovering tooltips.\r\n\r\n### Version of Angular, UIBS, and Bootstrap\r\n\r\nAngular: 1.5.8\r\n\r\nUIBS: 2.1.3\r\n\r\nBootstrap: 3.3.7\r\n"},"comment":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/comments/248616179","html_url":"https://github.com/angular-ui/bootstrap/issues/6221#issuecomment-248616179","issue_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/6221","id":248616179,"user":{"login":"RobJacobs","id":4559806,"avatar_url":"https://avatars.githubusercontent.com/u/4559806?v=3","gravatar_id":"","url":"https://api.github.com/users/RobJacobs","html_url":"https://github.com/RobJacobs","followers_url":"https://api.github.com/users/RobJacobs/followers","following_url":"https://api.github.com/users/RobJacobs/following{/other_user}","gists_url":"https://api.github.com/users/RobJacobs/gists{/gist_id}","starred_url":"https://api.github.com/users/RobJacobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobJacobs/subscriptions","organizations_url":"https://api.github.com/users/RobJacobs/orgs","repos_url":"https://api.github.com/users/RobJacobs/repos","events_url":"https://api.github.com/users/RobJacobs/events{/privacy}","received_events_url":"https://api.github.com/users/RobJacobs/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T13:43:00Z","updated_at":"2016-09-21T13:43:00Z","body":"@Rouche Yes it does. [here](https://plnkr.co/edit/lzPKNFD5oYvR2kKVnafH?p=preview) is a plunk with the delay set to 500 and I can't get the error to occur (sorry, 250 was not long enough).  I'm not suggesting this is the final solution, but it can be an effective work around until #6226 lands.  We should have a default delay set on the tooltip to avoid getting in the race condition in the first place."}}
{"actor":{"display_login":"RobJacobs"}}