@fluxhub/fluxhub-lib 9.0.68 → 9.0.70

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.
@@ -6934,8 +6934,14 @@
6934
6934
  FHAutoCompleteComponent.prototype.fo_search = function (o) {
6935
6935
  var _this = this;
6936
6936
  setTimeout(function () {
6937
- _this.onChange(_this.sItem);
6938
- _this.change.emit(_this.sItem);
6937
+ if (!_this.only_from_list) {
6938
+ _this.onChange(_this.sItem);
6939
+ _this.change.emit(_this.sItem);
6940
+ }
6941
+ else {
6942
+ _this.onChange(_this.getValue());
6943
+ _this.change.emit(_this.getValue());
6944
+ }
6939
6945
  });
6940
6946
  this
6941
6947
  .focusout
@@ -6982,10 +6988,14 @@
6982
6988
  this
6983
6989
  .selchange
6984
6990
  .emit({ event: $event, valore: this.getValue(), descrizione_valore: this.sItem });
6985
- this
6986
- .change
6987
- .emit(value);
6988
- this.onChange(value);
6991
+ if (!this.only_from_list) {
6992
+ this.onChange(this.sItem);
6993
+ this.change.emit(this.sItem);
6994
+ }
6995
+ else {
6996
+ this.onChange(this.getValue());
6997
+ this.change.emit(this.getValue());
6998
+ }
6989
6999
  };
6990
7000
  FHAutoCompleteComponent.prototype.myListFormatter = function (data) {
6991
7001
  return data['descrizione_valore'];
@@ -7106,13 +7116,17 @@
7106
7116
  this.selval = desc_val;
7107
7117
  if (this.myData != null) {
7108
7118
  for (var x in this.myData) {
7119
+ var b_found = false;
7109
7120
  if (this.myData[x]['valore'] == this.selval) {
7110
7121
  this.sItem = this.myData[x]['descrizione_valore'];
7111
7122
  if (this.sItem != null) {
7123
+ b_found = true;
7112
7124
  this.descri_val = this.sItem;
7113
7125
  }
7114
7126
  return;
7115
7127
  }
7128
+ if (!b_found && this.only_from_list)
7129
+ this.resetValue();
7116
7130
  }
7117
7131
  }
7118
7132
  if (!this.only_from_list) {