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

NgxMaskPipe keeps previous configs when transform() called

Open bsayat opened this issue 1 year ago • 0 comments

🐞 bug report

Description

when you call transform() method of NgxMaskPipe with some configs, this configs affects on another transform() method call without/with configs.

🔬 Minimal Reproduction

console.log(this._mask.transform('55555', '00 (000)', { suffix: ' DDD' })); // 55 (555) DDD
console.log(this._mask.transform('55555', '00 (000)', { prefix: 'DDD ' })); // DDD 55 (555) DDD

https://stackblitz.com/edit/stackblitz-starters-udi4kf?file=src%2Fmain.ts

🌍 Your Environment

You can find it in stackblitz

bsayat avatar Feb 14 '24 08:02 bsayat