From 7cbe62638e4d2af61c14b7d92ae23eb5b5af8bf4 Mon Sep 17 00:00:00 2001 From: Nathan Reyes Date: Mon, 27 Nov 2017 09:07:15 -0600 Subject: [PATCH] Fix styling bug introduced by v0.3.1. --- CHANGELOG.md | 3 +++ package.json | 2 +- src/components/DatePicker.vue | 9 +++++++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e43f010fb..7b996246d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 0.3.2 +* Fix styling bug introduced by v0.3.1. + ## 0.3.1 * Fix bug with duplicate events being fired. Closes #15. * Fix application of styling for date pickers when not inline. Closes #17. diff --git a/package.json b/package.json index b10e74e86..fddab41c9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "v-calendar", - "version": "0.3.1", + "version": "0.3.2", "description": "A clean and extendable plugin for building simple attributed calendars in Vue.js.", "keywords": [ "vue", diff --git a/src/components/DatePicker.vue b/src/components/DatePicker.vue index f2606d75d..e784feb5e 100755 --- a/src/components/DatePicker.vue +++ b/src/components/DatePicker.vue @@ -187,7 +187,12 @@ export default { ...this.themeStyles, }; // Strip border from the wrapper when used in a popover - if (!this.isInline && styles.wrapper) styles.wrapper.border = '0'; + if (!this.isInline) { + styles.wrapper = { + ...styles.wrapper, + border: '0', + }; + } return styles; }, popoverContentStyle() { @@ -342,7 +347,7 @@ export default { }; -