You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we can't pass readonly string[] to dropSpecialCharacters and specialCharacters with strictTemplates enabled.
🔬 Minimal Reproduction
<!-- Argument of type 'readonly [...]' is not assignable to parameter of type 'string[]'.
The type 'readonly [...]' is 'readonly' and cannot be assigned to the mutable type 'string[]'. -><inputmatInputformControlName="test" mask="testing" [specialCharacters]="specialCharacters">
specialCharacters=['[',']','\\']asconst;
🌍 Your Environment
Angular Version: 10.x.
Anything else relevant? To solve this we can do the following:
🐞 bug report
Is this a regression? No.
Description
Currently we can't pass
readonly string[]
todropSpecialCharacters
andspecialCharacters
withstrictTemplates
enabled.🔬 Minimal Reproduction
🌍 Your Environment
Angular Version: 10.x.
Anything else relevant? To solve this we can do the following:
ngx-mask/projects/ngx-mask-lib/src/lib/config.ts
Lines 13 to 14 in f14b4fe
The text was updated successfully, but these errors were encountered: