Skip to content

Commit

Permalink
fix #7232
Browse files Browse the repository at this point in the history
  • Loading branch information
polushinmk committed Feb 12, 2019
1 parent 7db14d3 commit d0b0e3c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/components/calendar/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1285,8 +1285,9 @@ export class Calendar implements OnInit,OnDestroy,ControlValueAccessor {

decrementMinute(event) {
let newMinute = this.currentMinute - this.stepMinute;
newMinute = (newMinute < 0) ? 60 + newMinute : newMinute;
if (this.validateMinute(newMinute)) {
this.currentMinute = (newMinute < 0) ? 60 + newMinute : newMinute;
this.currentMinute = newMinute;
}

event.preventDefault();
Expand Down Expand Up @@ -1332,8 +1333,9 @@ export class Calendar implements OnInit,OnDestroy,ControlValueAccessor {

decrementSecond(event) {
let newSecond = this.currentSecond - this.stepSecond;
newSecond = (newSecond < 0) ? 60 + newSecond : newSecond;
if (this.validateSecond(newSecond)) {
this.currentSecond = (newSecond < 0) ? 60 + newSecond : newSecond;
this.currentSecond = newSecond;
}

event.preventDefault();
Expand Down

0 comments on commit d0b0e3c

Please sign in to comment.