ngx-mask 14.2.1 → 14.2.2
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/fesm2020/ngx-mask.mjs
CHANGED
|
@@ -660,6 +660,10 @@ class MaskService extends MaskApplierService {
|
|
|
660
660
|
? this.shiftTypedSymbols(actualResult.join(''))
|
|
661
661
|
: inputValue;
|
|
662
662
|
}
|
|
663
|
+
if (this.showMaskTyped) {
|
|
664
|
+
// eslint-disable-next-line no-param-reassign
|
|
665
|
+
inputValue = this.removeMask(inputValue);
|
|
666
|
+
}
|
|
663
667
|
newInputValue = Boolean(newInputValue) && newInputValue.length ? newInputValue : inputValue;
|
|
664
668
|
const result = super.applyMask(newInputValue, maskExpression, position, justPasted, backspaced, cb);
|
|
665
669
|
this.actualValue = this.getActualValue(result);
|