diff --git a/CHANGELOG.md b/CHANGELOG.md index 5094d415b..83e5d28a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.4.1 +* Use local nextTick reference, deleting Vue scope dependency. +* Fix null attribute bug in date picker. + ## 0.4.0 * Fix weekday labels not always having same exact width * Add support for complex attribute dates. Closes #7 and #12. diff --git a/package.json b/package.json index 73393601e..d3320f038 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "v-calendar", - "version": "0.4.0", + "version": "0.4.1", "description": "A clean and extendable plugin for building simple attributed calendars in Vue.js.", "keywords": [ "vue", diff --git a/src/components/DateRangePicker.vue b/src/components/DateRangePicker.vue index 3b7aeb206..726dd084f 100755 --- a/src/components/DateRangePicker.vue +++ b/src/components/DateRangePicker.vue @@ -56,7 +56,7 @@ export default { }; }, attributes_() { - const attributes = [...this.attributes]; + const attributes = [...(this.attributes || [])]; if (this.dragAttribute_) attributes.push(this.dragAttribute_); else if (this.selectAttribute_) attributes.push(this.selectAttribute_); if (this.disabledAttribute) attributes.push(this.disabledAttribute); diff --git a/src/components/MultipleDatePicker.vue b/src/components/MultipleDatePicker.vue index d8e03616c..5d6531144 100755 --- a/src/components/MultipleDatePicker.vue +++ b/src/components/MultipleDatePicker.vue @@ -33,7 +33,7 @@ export default { }; }, attributes_() { - const attributes = [...this.attributes]; + const attributes = [...(this.attributes || [])]; if (this.selectAttribute_) attributes.push(this.selectAttribute_); if (this.disabledAttribute) attributes.push(this.disabledAttribute); return attributes; diff --git a/src/components/SingleDatePicker.vue b/src/components/SingleDatePicker.vue index f78a711cd..0ce08752c 100755 --- a/src/components/SingleDatePicker.vue +++ b/src/components/SingleDatePicker.vue @@ -33,7 +33,7 @@ export default { }; }, attributes_() { - const attributes = [...this.attributes]; + const attributes = [...(this.attributes || [])]; if (this.selectAttribute_) attributes.push(this.selectAttribute_); if (this.disabledAttribute) attributes.push(this.disabledAttribute); return attributes;