@esfaenza/forms-and-validations 15.2.33 → 15.2.34

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.
@@ -3108,8 +3108,12 @@ class FormDateComponent extends BaseFormControl {
3108
3108
  super.writeValue(obj);
3109
3109
  }
3110
3110
  changed() {
3111
- this.EvaluatedModel = this.Model ? this.datesExts.getFormatted(this.Model, true, false) : '';
3112
- super.changed(null, false, true);
3111
+ let newlyEvaluatedModel = this.Model ? this.datesExts.getFormatted(this.Model, true, false) : '';
3112
+ // Evito che l'inputChange lato html mi faccia sparare fuori dai changed finti. L'input cambia solo quando cambia il modello presentato
3113
+ if (newlyEvaluatedModel != this.EvaluatedModel) {
3114
+ this.EvaluatedModel = newlyEvaluatedModel;
3115
+ super.changed(null, false, true);
3116
+ }
3113
3117
  }
3114
3118
  /** @ignore */
3115
3119
  onNotNullValueSet() { }