Hi! π
Firstly, thanks for your work on this project! π
Today I used patch-package to patch [email protected] for the project I'm working on.
Fixed issue #46
Here is the diff that solved my problem:
diff --git a/node_modules/vue-datetime/src/Datetime.vue b/node_modules/vue-datetime/src/Datetime.vue
index a8d9e99..4c28881 100644
--- a/node_modules/vue-datetime/src/Datetime.vue
+++ b/node_modules/vue-datetime/src/Datetime.vue
@@ -206,7 +206,8 @@ export default {
datetime = startOfDay(datetime)
}
- this.$emit('input', datetime ? datetime.toISO() : '')
+ const value = datetime ? datetime.toISO() : null
+ this.datetime !== value ? this.$emit('input', value) : null
},
open (event) {
event.target.blur()