ngx-mask
ngx-mask copied to clipboard
The prefix is not removed when we set the control value
π bug report
Is this a regression?
Yes, the previous version in which this bug was not present was: 16.x.x
Description
When we set in control value with prefix control value equal value what we set.
π¬ Minimal Reproduction
π₯ Exception or Error
const prefix = 'prefix';
const value = '000123'
control.setValue(prefix + value);
control.value === value // true
π Your Environment
Angular Version:
Anything else relevant?