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

Commit d767afb

Browse files
committed
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
1 parent 701e0cb commit d767afb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tabs/tabs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ angular.module('ui.bootstrap.tabs', [])
1313
previousSelected.tab.onDeselect({
1414
$event: evt
1515
});
16-
if (evt && evt.defaultPrevented) {
16+
if (evt && evt.isDefaultPrevented()) {
1717
return;
1818
}
1919
previousSelected.tab.active = false;

0 commit comments

Comments
 (0)