{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5720","repository_url":"https://api.github.com/repos/angular-ui/bootstrap","labels_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5720/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5720/comments","events_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5720/events","html_url":"https://github.com/angular-ui/bootstrap/issues/5720","id":144937260,"number":5720,"title":"Update tab directive's select method to allow for event.stopPropagation()","user":{"login":"icfantv","id":370054,"avatar_url":"https://avatars.githubusercontent.com/u/370054?v=3","gravatar_id":"","url":"https://api.github.com/users/icfantv","html_url":"https://github.com/icfantv","followers_url":"https://api.github.com/users/icfantv/followers","following_url":"https://api.github.com/users/icfantv/following{/other_user}","gists_url":"https://api.github.com/users/icfantv/gists{/gist_id}","starred_url":"https://api.github.com/users/icfantv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icfantv/subscriptions","organizations_url":"https://api.github.com/users/icfantv/orgs","repos_url":"https://api.github.com/users/icfantv/repos","events_url":"https://api.github.com/users/icfantv/events{/privacy}","received_events_url":"https://api.github.com/users/icfantv/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular-ui/bootstrap/labels/component:%20tab","name":"component: tab","color":"ffffff"},{"url":"https://api.github.com/repos/angular-ui/bootstrap/labels/type:%20enhancement","name":"type: enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"icfantv","id":370054,"avatar_url":"https://avatars.githubusercontent.com/u/370054?v=3","gravatar_id":"","url":"https://api.github.com/users/icfantv","html_url":"https://github.com/icfantv","followers_url":"https://api.github.com/users/icfantv/followers","following_url":"https://api.github.com/users/icfantv/following{/other_user}","gists_url":"https://api.github.com/users/icfantv/gists{/gist_id}","starred_url":"https://api.github.com/users/icfantv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icfantv/subscriptions","organizations_url":"https://api.github.com/users/icfantv/orgs","repos_url":"https://api.github.com/users/icfantv/repos","events_url":"https://api.github.com/users/icfantv/events{/privacy}","received_events_url":"https://api.github.com/users/icfantv/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2016-03-31T15:39:08Z","updated_at":"2016-04-04T15:28:25Z","closed_at":null,"body":"The current `select` method on the `uibTab` directive does not allow the user to stop the selection process via `event.stopPropagation`.  We need to add an `if` block to check for this and not change tabs if the user's stopped the propagation.\r\n\r\nHere's the relevant code:  https://github.com/angular-ui/bootstrap/blob/master/src/tabs/tabs.js#L161-L173\r\n\r\nWe need to update the documentation as well.\r\n\r\nThis addresses comments/concerns in #2715, #4836, and #5716."},"comment":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/comments/205350058","html_url":"https://github.com/angular-ui/bootstrap/issues/5720#issuecomment-205350058","issue_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5720","id":205350058,"user":{"login":"icfantv","id":370054,"avatar_url":"https://avatars.githubusercontent.com/u/370054?v=3","gravatar_id":"","url":"https://api.github.com/users/icfantv","html_url":"https://github.com/icfantv","followers_url":"https://api.github.com/users/icfantv/followers","following_url":"https://api.github.com/users/icfantv/following{/other_user}","gists_url":"https://api.github.com/users/icfantv/gists{/gist_id}","starred_url":"https://api.github.com/users/icfantv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icfantv/subscriptions","organizations_url":"https://api.github.com/users/icfantv/orgs","repos_url":"https://api.github.com/users/icfantv/repos","events_url":"https://api.github.com/users/icfantv/events{/privacy}","received_events_url":"https://api.github.com/users/icfantv/received_events","type":"User","site_admin":false},"created_at":"2016-04-04T15:28:25Z","updated_at":"2016-04-04T15:28:25Z","body":"@daniel-jann, actually, you're sort of right.  Angular found this issue as well and augmented their event object with the same method from jQuery (and even included a comment as to why):\r\n\r\n```\r\nfunction createEventHandler(element, events) {\r\n  var eventHandler = function(event, type) {\r\n    // jQuery specific api\r\n    event.isDefaultPrevented = function() {\r\n      return event.defaultPrevented;\r\n    };\r\n...\r\n```\r\n\r\nI'm going to reopen and fix."}}