@fluxhub/fluxhub-lib 9.0.68 → 9.0.69

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.
@@ -6801,8 +6801,14 @@ var FHAutoCompleteComponent = /** @class */ (function () {
6801
6801
  FHAutoCompleteComponent.prototype.fo_search = function (o) {
6802
6802
  var _this = this;
6803
6803
  setTimeout(function () {
6804
- _this.onChange(_this.sItem);
6805
- _this.change.emit(_this.sItem);
6804
+ if (!_this.only_from_list) {
6805
+ _this.onChange(_this.sItem);
6806
+ _this.change.emit(_this.sItem);
6807
+ }
6808
+ else {
6809
+ _this.onChange(_this.getValue());
6810
+ _this.change.emit(_this.getValue());
6811
+ }
6806
6812
  });
6807
6813
  this
6808
6814
  .focusout
@@ -6849,10 +6855,14 @@ var FHAutoCompleteComponent = /** @class */ (function () {
6849
6855
  this
6850
6856
  .selchange
6851
6857
  .emit({ event: $event, valore: this.getValue(), descrizione_valore: this.sItem });
6852
- this
6853
- .change
6854
- .emit(value);
6855
- this.onChange(value);
6858
+ if (!this.only_from_list) {
6859
+ this.onChange(this.sItem);
6860
+ this.change.emit(this.sItem);
6861
+ }
6862
+ else {
6863
+ this.onChange(this.getValue());
6864
+ this.change.emit(this.getValue());
6865
+ }
6856
6866
  };
6857
6867
  FHAutoCompleteComponent.prototype.myListFormatter = function (data) {
6858
6868
  return data['descrizione_valore'];