ngx-mask icon indicating copy to clipboard operation
ngx-mask copied to clipboard

The prefix is not removed when we set the control value

Open walkadaw opened this issue 1 year ago β€’ 0 comments

🐞 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

https://stackblitz.com/...

πŸ”₯ Exception or Error




const prefix = 'prefix';
const value = '000123'

control.setValue(prefix + value);

control.value === value // true

🌍 Your Environment

Angular Version:





Anything else relevant?

walkadaw avatar Jan 18 '24 12:01 walkadaw