From e94408af58b2649296681a10526090f6487ad949 Mon Sep 17 00:00:00 2001 From: Liana Harris <46411498+LianaHarris360@users.noreply.github.com> Date: Mon, 23 Jan 2023 10:15:16 -0600 Subject: [PATCH 1/2] Corrected kdaterange month and year display and removed font-family --- lib/KDateRange/KDateCalendar.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/KDateRange/KDateCalendar.vue b/lib/KDateRange/KDateCalendar.vue index 119726798..223aa7059 100644 --- a/lib/KDateRange/KDateCalendar.vue +++ b/lib/KDateRange/KDateCalendar.vue @@ -166,7 +166,7 @@ }, numOfDays: 7, isFirstChoice: this.selectedStartDate ? true : false, - activeMonth: new Date().getMonth() - 1, + activeMonth: new Date().getMonth() - 1 == -1 ? 11 : new Date().getMonth() - 1, activeYearStart: new Date().getFullYear(), }; }, @@ -209,7 +209,7 @@ }, }, created() { - if (this.activeMonth === 11) this.activeYearEnd = this.activeYearStart + 1; + if (this.activeMonth === 11) this.activeYearStart = this.activeYearStart - 1; }, methods: { /** @@ -433,7 +433,6 @@ .calendar { height: auto; margin-right: 5px; - font-family: 'Noto Sans'; font-size: 14px; background: white; } From c5a9d40a7c7a98f98f8b5327108a90f17c79af8e Mon Sep 17 00:00:00 2001 From: Liana Harris <46411498+LianaHarris360@users.noreply.github.com> Date: Mon, 23 Jan 2023 12:56:38 -0600 Subject: [PATCH 2/2] Added predictableActionArguments to validation machine to fix console warnings when importing KDS --- lib/KDateRange/ValidationMachine.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/KDateRange/ValidationMachine.js b/lib/KDateRange/ValidationMachine.js index 1351da1aa..54e173d9a 100644 --- a/lib/KDateRange/ValidationMachine.js +++ b/lib/KDateRange/ValidationMachine.js @@ -98,6 +98,7 @@ export const initialContext = { }; export const validationMachine = createMachine({ + predictableActionArguments: true, id: 'fetch', initial: 'placeholder', context: initialContext,