Skip to content

Commit

Permalink
Fix calcFirstDayOfWeek in QDatePicker (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
ViZhe authored Mar 30, 2021
1 parent c016056 commit f8bedc1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/qComponents/QDatePicker/src/QDatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@

<script>
import { createPopper } from '@popperjs/core';
import { isString } from 'lodash-es';
import { isNil, isString } from 'lodash-es';
import {
formatISO,
isDate,
Expand Down Expand Up @@ -295,9 +295,9 @@ export default {
computed: {
calcFirstDayOfWeek() {
if (!Number.isNaN(Number(this.firstDayOfWeek)))
return this.firstDayOfWeek;
return this.$Q.locale === 'ru' ? 1 : 0;
if (isNil(this.firstDayOfWeek)) return this.$Q.locale === 'ru' ? 1 : 0;
return this.firstDayOfWeek;
},
transformedValue() {
if (Array.isArray(this.value) && this.value.length) {
Expand Down

0 comments on commit f8bedc1

Please sign in to comment.