Skip to content

Commit

Permalink
fix: localeWeekday change the currentLocale shotDay
Browse files Browse the repository at this point in the history
tempLocale was a reference to currentLocale.shotDay now it's a copy
  • Loading branch information
abdelrazzaq-dev committed Jan 17, 2020
1 parent a01c5f1 commit 7b5dd8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default class DatePicker extends Vue {
get localeWeekday() {
if (this.currentLocale && this.currentLocale.shortDay) {
if (this.currentLocale.theStartOfTheWeek === 1) {
const tempLocale = this.currentLocale.shortDay;
const tempLocale = [...this.currentLocale.shortDay];
tempLocale.push(tempLocale.shift() as string);
return tempLocale;
}
Expand Down

0 comments on commit 7b5dd8d

Please sign in to comment.