If the initial value of this.contact.name is not empty, the input was cleared.
I debugged a little bit your code and seems that the customPattern object inside the MaskApplierService is undefined when the first check runs the _checkSymbolMask method during the loading phase. In the following input changes the customPattern are filled with che new C and P pattern.
There is a way to force the module to set the custom pattern before the first check?
I'm using a formBuilder in a ion-input where I also use a custom mask with custom pattern in order to create and edit a contact in a address book:
If the initial value of
this.contact.name
is not empty, the input was cleared.I debugged a little bit your code and seems that the
customPattern
object inside theMaskApplierService
isundefined
when the first check runs the_checkSymbolMask
method during the loading phase. In the following input changes thecustomPattern
are filled with che newC
andP
pattern.There is a way to force the module to set the custom pattern before the first check?
Thanks, --Luca