tnx-shared 5.2.15 → 5.2.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -47774,13 +47774,7 @@
47774
47774
  if (obj) {
47775
47775
  if (obj instanceof Array) {
47776
47776
  // this.selectedValue = obj;
47777
- this.selectedValue = obj.map(function (x) {
47778
- var temp = {
47779
- _dropdownvalue: _this.control.valueField,
47780
- };
47781
- temp[_this.control.valueField] = x;
47782
- return temp;
47783
- });
47777
+ this.selectedValue = obj.map(function (x) { return _this.getObjSelectValueFromValue(x); });
47784
47778
  this._triggerProcessData();
47785
47779
  }
47786
47780
  }
@@ -47788,10 +47782,18 @@
47788
47782
  else {
47789
47783
  this.selectedValue = null;
47790
47784
  if (obj) {
47791
- this.selectedValue = obj;
47785
+ this.selectedValue = this.getObjSelectValueFromValue(obj);
47786
+ this._triggerProcessData();
47792
47787
  }
47793
47788
  }
47794
47789
  };
47790
+ EntityPickerComponent.prototype.getObjSelectValueFromValue = function (value) {
47791
+ var temp = {
47792
+ _dropdownvalue: this.control.valueField,
47793
+ };
47794
+ temp[this.control.valueField] = value;
47795
+ return temp;
47796
+ };
47795
47797
  EntityPickerComponent.prototype.registerOnChange = function (fn) {
47796
47798
  this.onChange = fn;
47797
47799
  };