mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
Change handler setting modelValue for validation
setting it in getValue() alone does not remove validation message direct after entering a date
This commit is contained in:
parent
185e0eaf95
commit
ac408f4eef
@ -395,6 +395,21 @@ export class Et2Date extends Et2InputWidget(FormControlMixin(ValidateMixin(LitFl
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Change handler setting modelValue for validation
|
||||
*
|
||||
* @param _ev
|
||||
* @returns
|
||||
*/
|
||||
_onChange(_ev : Event) : boolean
|
||||
{
|
||||
const ret = super._onChange(_ev);
|
||||
|
||||
this.modelValue = this.getValue();
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the minimum allowed date
|
||||
* @param {string | Date} min
|
||||
@ -445,4 +460,4 @@ export class Et2Date extends Et2InputWidget(FormControlMixin(ValidateMixin(LitFl
|
||||
}
|
||||
|
||||
// @ts-ignore TypeScript is not recognizing that Et2Date is a LitElement
|
||||
customElements.define("et2-date", Et2Date);
|
||||
customElements.define("et2-date", Et2Date);
|
Loading…
Reference in New Issue
Block a user