mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Et2InputWidget: Do not try to validate readonly widgets, user can't change the value to fix it
This commit is contained in:
parent
10c646a367
commit
19c02fc91c
@ -444,6 +444,11 @@ const Et2InputWidgetMixin = <T extends Constructor<LitElement>>(superclass : T)
|
|||||||
*/
|
*/
|
||||||
async validate()
|
async validate()
|
||||||
{
|
{
|
||||||
|
if(this.readonly)
|
||||||
|
{
|
||||||
|
// Don't validate if the widget is read-only, there's nothing the user can do about it
|
||||||
|
return Promise.resolve();
|
||||||
|
}
|
||||||
let validators = [...(this.validators || []), ...(this.defaultValidators || [])];
|
let validators = [...(this.validators || []), ...(this.defaultValidators || [])];
|
||||||
let fieldName = this.id;
|
let fieldName = this.id;
|
||||||
let feedbackData = [];
|
let feedbackData = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user