Fix disabled widgets returning a value

Fixes calendar event created via quick add, duration is wrong
This commit is contained in:
nathan 2022-07-25 13:32:06 -06:00
parent 1a4badfabd
commit 66164ad2eb
2 changed files with 2 additions and 2 deletions

View File

@ -457,7 +457,7 @@ export class Et2Date extends Et2InputWidget(FormControlMixin(ValidateMixin(LitFl
getValue()
{
if(this.readOnly)
if(this.readOnly || this.disabled)
{
return null;
}

View File

@ -239,7 +239,7 @@ const Et2InputWidgetMixin = <T extends Constructor<LitElement>>(superclass : T)
getValue()
{
return this.readOnly ? null : this.value;
return this.readOnly || this.disabled ? null : this.value;
}