Skip to content

Commit

Permalink
Add type='button' to timepicker period buttons (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurastreb authored and Agranom committed Oct 31, 2018
1 parent eea4ba3 commit 490acd4
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<div class="timepicker-period">
<button class="timepicker-dial__item timepicker-period__btn"
[ngClass]="{'timepicker-dial__item_active': selectedPeriod === timePeriod.AM}"
(click)="changePeriod(timePeriod.AM)">AM</button>
(click)="changePeriod(timePeriod.AM)"
type="button">AM</button>
<button class="timepicker-dial__item timepicker-period__btn"
[ngClass]="{'timepicker-dial__item_active': selectedPeriod === timePeriod.PM}"
(click)="changePeriod(timePeriod.PM)">PM</button>
(click)="changePeriod(timePeriod.PM)"
type="button">PM</button>
<div class="timepicker-period__warning" [@scaleInOut] (@scaleInOut.done)="animationDone()" *ngIf="!isPeriodAvailable">
<p>Current time would be invalid in this period.</p>
</div>
Expand Down

0 comments on commit 490acd4

Please sign in to comment.