mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
null and undefined are objects too
fixes TypeError: Cannot read properties of null (reading 'length')
This commit is contained in:
parent
7d86d69b49
commit
a50fa29419
@ -369,7 +369,7 @@ const Et2InputWidgetMixin = <T extends Constructor<LitElement>>(superclass : T)
|
||||
{
|
||||
return this.readonly || this.disabled ? null : (
|
||||
// Give a clone of objects or receiver might use the reference
|
||||
typeof this.value == "object" ? (typeof this.value.length == "undefined" ? {...this.value} : [...this.value]) : this.value
|
||||
this.value && typeof this.value == "object" ? (typeof this.value.length == "undefined" ? {...this.value} : [...this.value]) : this.value
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user