Skip to content

Commit

Permalink
Merge pull request #406 from LianaHarris360/kdaterange-corrections
Browse files Browse the repository at this point in the history
Corrected kdaterange month and year display and removed font-family
  • Loading branch information
LianaHarris360 authored Jan 25, 2023
2 parents 858a85f + c5a9d40 commit 7409c54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/KDateRange/KDateCalendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
};
},
Expand Down Expand Up @@ -209,7 +209,7 @@
},
},
created() {
if (this.activeMonth === 11) this.activeYearEnd = this.activeYearStart + 1;
if (this.activeMonth === 11) this.activeYearStart = this.activeYearStart - 1;
},
methods: {
/**
Expand Down Expand Up @@ -433,7 +433,6 @@
.calendar {
height: auto;
margin-right: 5px;
font-family: 'Noto Sans';
font-size: 14px;
background: white;
}
Expand Down
1 change: 1 addition & 0 deletions lib/KDateRange/ValidationMachine.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export const initialContext = {
};

export const validationMachine = createMachine({
predictableActionArguments: true,
id: 'fetch',
initial: 'placeholder',
context: initialContext,
Expand Down

0 comments on commit 7409c54

Please sign in to comment.