From 3cb7e1fffbd3b7e7d805d1d0a7fce5a13d89b3b1 Mon Sep 17 00:00:00 2001 From: Faizaan Gagan Date: Mon, 22 Nov 2021 01:23:12 +0530 Subject: [PATCH] set a fallback if no date format is passed --- .../javascripts/wizard/components/wizard-date-input.js.es6 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/assets/javascripts/wizard/components/wizard-date-input.js.es6 b/assets/javascripts/wizard/components/wizard-date-input.js.es6 index ea982e39..14e8ccf2 100644 --- a/assets/javascripts/wizard/components/wizard-date-input.js.es6 +++ b/assets/javascripts/wizard/components/wizard-date-input.js.es6 @@ -8,4 +8,9 @@ export default DateInput.extend({ placeholder() { return this.format; }, + _opts() { + return { + format: this.format || "LL" + } + } });