Fix required dates gave missing error even if they had a value

This commit is contained in:
nathan 2022-03-07 09:12:32 -07:00
parent bb1e9d2c30
commit 1671e69603

View File

@ -348,6 +348,9 @@ export class Et2Date extends Et2InputWidget(FormControlMixin(ValidateMixin(LitFl
// @ts-ignore TypeScript can't find scrollPlugin, but rollup does
options.plugins = [new scrollPlugin()];
// Listen for flatpickr change so we can update internal value, needed for validation
options.onChange = options.onReady = () => {this.modelValue = this._inputNode.value;};
return options;
}