From e7a44d9979eaecd16c7530f9f11c526a8927099c Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 27 Apr 2024 21:54:55 -0500 Subject: [PATCH] Let caller use string data for don't require a Date object, since callers thus far have not expected that --- tailbone/templates/themes/butterball/field-components.mako | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tailbone/templates/themes/butterball/field-components.mako b/tailbone/templates/themes/butterball/field-components.mako index 1925e794..b8c3d1dc 100644 --- a/tailbone/templates/themes/butterball/field-components.mako +++ b/tailbone/templates/themes/butterball/field-components.mako @@ -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) }, },