mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-15 19:20:47 +01:00
null and undefined are objects too
fixes TypeError: Cannot read properties of null (reading 'length')
This commit is contained in:
parent
95aae678ff
commit
bce396d86a
@ -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