From a0467b2e55e6df8891f252968477b9f7b0f75b90 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 22 Jul 2022 08:42:35 -0600 Subject: [PATCH] Fix JS error about can't find input box from init() --- api/js/etemplate/Et2Date/Et2Date.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/js/etemplate/Et2Date/Et2Date.ts b/api/js/etemplate/Et2Date/Et2Date.ts index 90ab4cf116..145ef3244b 100644 --- a/api/js/etemplate/Et2Date/Et2Date.ts +++ b/api/js/etemplate/Et2Date/Et2Date.ts @@ -394,7 +394,7 @@ export class Et2Date extends Et2InputWidget(FormControlMixin(ValidateMixin(LitFl { let options = super.getOptions(); - options.altFormat = this.egw()?.preference("dateformat") || "Y-m-d"; + options.altFormat = this.egw()?.preference("dateformat") || "Y-m-d"; options.altInput = true; options.allowInput = true; options.dateFormat = "Y-m-dT00:00:00\\Z"; @@ -627,12 +627,12 @@ export class Et2Date extends Et2InputWidget(FormControlMixin(ValidateMixin(LitFl } /** - * The interactive (form) element. Override from Lion + * The interactive (form) element. * @protected */ - get _inputNode() + get _inputNode() : HTMLElement { - return /** @type {HTMLElementWithValue} */ (this.querySelector('et2-textbox[type="text"]')); + return this.querySelector('et2-textbox'); } }