Let caller use string data for <tailbone-datepicker>

don't require a Date object, since callers thus far have not expected that
This commit is contained in:
Lance Edgar 2024-04-27 21:54:55 -05:00
parent 2eaeb1891d
commit e7a44d9979

View file

@ -321,7 +321,7 @@
template: '#tailbone-datepicker-template',
props: {
modelValue: Date,
modelValue: [Date, String],
disabled: Boolean,
},
@ -333,9 +333,7 @@
watch: {
modelValue(to, from) {
if (this.orugaValue != to) {
this.orugaValue = to
}
this.orugaValue = this.parseDate(to)
},
},