From 2c1e30bb826a59d1be0519418ad43318aeb7a098 Mon Sep 17 00:00:00 2001 From: freddroguest <37300349+freddroguest@users.noreply.github.com> Date: Fri, 18 Aug 2023 03:21:51 +0200 Subject: [PATCH] Convert stepMinute / hour / second to Number (#4208) #4207 Co-authored-by: VacataireG2V --- components/lib/calendar/Calendar.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/lib/calendar/Calendar.vue b/components/lib/calendar/Calendar.vue index 65b014abd..5b2c2ab7e 100755 --- a/components/lib/calendar/Calendar.vue +++ b/components/lib/calendar/Calendar.vue @@ -1416,7 +1416,7 @@ export default { }, incrementHour(event) { let prevHour = this.currentHour; - let newHour = this.currentHour + this.stepHour; + let newHour = this.currentHour + Number(this.stepHour); let newPM = this.pm; if (this.hourFormat == '24') newHour = newHour >= 24 ? newHour - 24 : newHour; @@ -1458,7 +1458,7 @@ export default { event.preventDefault(); }, incrementMinute(event) { - let newMinute = this.currentMinute + this.stepMinute; + let newMinute = this.currentMinute + Number(this.stepMinute); if (this.validateTime(this.currentHour, newMinute, this.currentSecond, this.pm)) { this.currentMinute = newMinute > 59 ? newMinute - 60 : newMinute; @@ -1478,7 +1478,7 @@ export default { event.preventDefault(); }, incrementSecond(event) { - let newSecond = this.currentSecond + this.stepSecond; + let newSecond = this.currentSecond + Number(this.stepSecond); if (this.validateTime(this.currentHour, this.currentMinute, newSecond, this.pm)) { this.currentSecond = newSecond > 59 ? newSecond - 60 : newSecond;