@esfaenza/forms-and-validations 11.2.71 → 11.2.72

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.
@@ -2126,8 +2126,9 @@
2126
2126
  BaseFormControl.prototype.changed = function (forcedValue, markForCheck) {
2127
2127
  if (forcedValue === void 0) { forcedValue = null; }
2128
2128
  if (markForCheck === void 0) { markForCheck = false; }
2129
- this.propagateChange(forcedValue == null ? this.Model : forcedValue);
2130
- this.inputChange.emit(forcedValue == null ? this.Model : forcedValue);
2129
+ var _a, _b;
2130
+ this.propagateChange(forcedValue == null || forcedValue == "" ? (_a = this.Model) !== null && _a !== void 0 ? _a : "" : forcedValue);
2131
+ this.inputChange.emit(forcedValue == null || forcedValue == "" ? (_b = this.Model) !== null && _b !== void 0 ? _b : "" : forcedValue);
2131
2132
  if (markForCheck)
2132
2133
  this.cdr.markForCheck();
2133
2134
  };
@@ -2518,7 +2519,7 @@
2518
2519
  return;
2519
2520
  }
2520
2521
  // Quando filtro la source, se non devo ignorare l'evento devo comunque assicurarmi di impostare il valore selezionato a null
2521
- _super.prototype.changed.call(this, "");
2522
+ _super.prototype.changed.call(this, null);
2522
2523
  if (!event && this.MinChars == 0 && !this.SearchFunction) {
2523
2524
  this.FilteredBoundSource = this.BoundSource;
2524
2525
  return;
@@ -3392,7 +3393,7 @@
3392
3393
  return;
3393
3394
  }
3394
3395
  // Quando filtro la source, se non devo ignorare l'evento devo comunque assicurarmi di impostare il valore selezionato a null
3395
- _super.prototype.changed.call(this, "");
3396
+ _super.prototype.changed.call(this, null);
3396
3397
  if (!event && this.MinChars == 0 && !this.SearchFunction) {
3397
3398
  this.FilteredBoundSource = this.BoundSource;
3398
3399
  return;