Commit 9aacb4c8b54814949058f2f1061f6e0d0a22d82e

Authored by Aresn
Committed by GitHub
2 parents ed4bb143 abf60d81

Merge pull request #3806 from SergioCrisostomo/datepicker-patches

Datepicker patches
src/components/date-picker/panel/Date/date-range.vue
@@ -161,7 +161,7 @@ @@ -161,7 +161,7 @@
161 leftPickerTable: `${this.selectionMode}-table`, 161 leftPickerTable: `${this.selectionMode}-table`,
162 rightPickerTable: `${this.selectionMode}-table`, 162 rightPickerTable: `${this.selectionMode}-table`,
163 leftPanelDate: leftPanelDate, 163 leftPanelDate: leftPanelDate,
164 - rightPanelDate: new Date(leftPanelDate.getFullYear(), leftPanelDate.getMonth() + 1, leftPanelDate.getDate()) 164 + rightPanelDate: new Date(leftPanelDate.getFullYear(), leftPanelDate.getMonth() + 1, 1)
165 }; 165 };
166 }, 166 },
167 computed: { 167 computed: {
src/components/date-picker/picker.vue
@@ -668,7 +668,7 @@ @@ -668,7 +668,7 @@
668 this.reset(); 668 this.reset();
669 }, 669 },
670 focus() { 670 focus() {
671 - this.$refs.input.focus(); 671 + this.$refs.input && this.$refs.input.focus();
672 } 672 }
673 }, 673 },
674 watch: { 674 watch: {