ngx-mask 22.2.3 → 22.2.4
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.
package/fesm2022/ngx-mask.mjs
CHANGED
|
@@ -1447,6 +1447,10 @@ class NgxMaskService extends NgxMaskApplierService {
|
|
|
1447
1447
|
if (!this.writingValue) {
|
|
1448
1448
|
this.formControlResult(this.prefix);
|
|
1449
1449
|
}
|
|
1450
|
+
// The field is now empty: record it, or retyping the previous value in one
|
|
1451
|
+
// input event (autofill, undo) would match the stale currentValue and never emit.
|
|
1452
|
+
this.previousValue = this.currentValue;
|
|
1453
|
+
this.currentValue = MaskExpression.EMPTY_STRING;
|
|
1450
1454
|
return `${this.prefix}${this.maskIsShown}${this.suffix}`;
|
|
1451
1455
|
}
|
|
1452
1456
|
const getSymbol = !!inputValue && typeof this.selStart === 'number'
|