diff --git a/api/js/etemplate/Et2Date/Et2Date.ts b/api/js/etemplate/Et2Date/Et2Date.ts index 82ab4cc823..b7323f5390 100644 --- a/api/js/etemplate/Et2Date/Et2Date.ts +++ b/api/js/etemplate/Et2Date/Et2Date.ts @@ -691,7 +691,8 @@ export class Et2Date extends Et2InputWidget(FormControlMixin(LitFlatpickr)) { // Update the et2-textbox so it will fail a required validation check this._inputNode.value = ''; - return this._instance.clear(); + this._instance.clear(); + this.dispatchEvent(new Event("change", {bubbles: true})); } let parsedDate = null try @@ -716,6 +717,7 @@ export class Et2Date extends Et2InputWidget(FormControlMixin(LitFlatpickr)) this._inputNode.value = formattedDate; (this._inputNode).validate(); } + this.dispatchEvent(new Event("change", {bubbles: true})); } /**