From d767afbd2a6e299170cb49b6300b5b4836b2162e Mon Sep 17 00:00:00 2001 From: Adam Gordon Date: Mon, 4 Apr 2016 09:42:38 -0600 Subject: [PATCH] fix(tab): fix event handler call * switch event handler call to look at `event.isDefaultPrevented()` instead of `event.defaultPrevented` as angular has implemented that method on jqlite events. Fixes #5720 Closes #5738 --- src/tabs/tabs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tabs/tabs.js b/src/tabs/tabs.js index 06cc9b6e43..b020ef0345 100644 --- a/src/tabs/tabs.js +++ b/src/tabs/tabs.js @@ -13,7 +13,7 @@ angular.module('ui.bootstrap.tabs', []) previousSelected.tab.onDeselect({ $event: evt }); - if (evt && evt.defaultPrevented) { + if (evt && evt.isDefaultPrevented()) { return; } previousSelected.tab.active = false;