Skip to content

Commit c97017c

Browse files
committed
Stop propagation on tabl links
Fixes #15
1 parent dc4fa94 commit c97017c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/bootstrap-decorator.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/directives/decorators/bootstrap/tabs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div ng-init="selected = { tab: 0 }">
22
<ul class="nav nav-tabs" style="margin-bottom: 15px">
33
<li ng-repeat="tab in form.tabs"
4-
ng-click="selected.tab = $index"
4+
ng-click="$event.preventDefault() || (selected.tab = $index)"
55
ng-class="{active: selected.tab === $index}">
66
<a href="#">{{ tab.title }}</a>
77
</li>

0 commit comments

Comments
 (0)