@fluxhub/fluxhub-lib 9.0.67 → 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.
@@ -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'];