forked from extern/egroupware
Fix disabled widgets returning a value
Fixes calendar event created via quick add, duration is wrong
This commit is contained in:
parent
1a4badfabd
commit
66164ad2eb
@ -457,7 +457,7 @@ export class Et2Date extends Et2InputWidget(FormControlMixin(ValidateMixin(LitFl
|
||||
|
||||
getValue()
|
||||
{
|
||||
if(this.readOnly)
|
||||
if(this.readOnly || this.disabled)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user