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

Commit 25caf5f

Browse files
bekospkozlowski-opensource
authored andcommitted
fix(datepicker): add type attribute for buttons
1 parent ba1f741 commit 25caf5f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

template/datepicker/datepicker.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<table class="well well-large">
22
<thead>
33
<tr class="text-center">
4-
<th><button class="btn pull-left" ng-click="move(-1)"><i class="icon-chevron-left"></i></button></th>
5-
<th colspan="{{rows[0].length - 2 + showWeekNumbers}}"><button class="btn btn-block" ng-click="toggleMode()"><strong>{{title}}</strong></button></th>
6-
<th><button class="btn pull-right" ng-click="move(1)"><i class="icon-chevron-right"></i></button></th>
4+
<th><button type="button" class="btn pull-left" ng-click="move(-1)"><i class="icon-chevron-left"></i></button></th>
5+
<th colspan="{{rows[0].length - 2 + showWeekNumbers}}"><button type="button" class="btn btn-block" ng-click="toggleMode()"><strong>{{title}}</strong></button></th>
6+
<th><button type="button" class="btn pull-right" ng-click="move(1)"><i class="icon-chevron-right"></i></button></th>
77
</tr>
88
<tr class="text-center" ng-show="labels.length > 0">
99
<th ng-show="showWeekNumbers">#</th>
@@ -14,7 +14,7 @@
1414
<tr ng-repeat="row in rows">
1515
<td ng-show="showWeekNumbers" class="text-center"><em>{{ getWeekNumber(row) }}</em></td>
1616
<td ng-repeat="dt in row" class="text-center">
17-
<button style="width:100%;" class="btn" ng-class="{'btn-info': dt.isSelected}" ng-click="select(dt.date)" ng-disabled="dt.disabled"><span ng-class="{muted: ! dt.isCurrent}">{{dt.label}}</span></button>
17+
<button type="button" style="width:100%;" class="btn" ng-class="{'btn-info': dt.isSelected}" ng-click="select(dt.date)" ng-disabled="dt.disabled"><span ng-class="{muted: ! dt.isCurrent}">{{dt.label}}</span></button>
1818
</td>
1919
</tr>
2020
</tbody>

0 commit comments

Comments
 (0)