diff --git a/api/js/etemplate/Et2InputWidget/Et2InputWidget.ts b/api/js/etemplate/Et2InputWidget/Et2InputWidget.ts index 58aa3e48cd..a2b77ad319 100644 --- a/api/js/etemplate/Et2InputWidget/Et2InputWidget.ts +++ b/api/js/etemplate/Et2InputWidget/Et2InputWidget.ts @@ -367,7 +367,10 @@ const Et2InputWidgetMixin = >(superclass : T) getValue() { - return this.readonly || this.disabled ? null : this.value; + 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 + ); } /**