ng-inail-common 1.0.440 → 1.0.441

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.
@@ -10125,9 +10125,12 @@
10125
10125
  if (this.numberValue != undefined) {
10126
10126
  /** @type {?} */
10127
10127
  var nextInputValue = void 0;
10128
- // Eseguito durante la digitazione
10129
- if (this.hasFocus() && !focusIn) {
10130
- nextInputValue = ("" + this.inputValue).replace(DOT_REGEX, ',');
10128
+ // Eseguito quando il focus e' sull'elemento
10129
+ if (this.hasFocus()) {
10130
+ // focusIn serve per distinguere se si sta eseguendo il metodo durante la digitazione
10131
+ // oppure quando l'elemento prende il focus
10132
+ // (trick introdotto per visualizzare correttamente il valore in maschera)
10133
+ nextInputValue = ("" + (focusIn ? this.numberValue : this.inputValue)).replace(DOT_REGEX, ',');
10131
10134
  }
10132
10135
  else {
10133
10136
  if (this.numberValue === 0 && this.zeroVisibleValue != undefined) {