This is my mask which is (966) ##### #### (966 is phone area code) and this mask is shown as expected.
But when I click on input all # symbols and number 9 are disappearing.
What I need is, the numbers I preset to keep their values. I guess this is occuring because of Built-in Mask Rules. Both number 9 and # are assigned as rule. And perhaps that's why they are disapperaing.
How can I achieve this?
Hello,
I have been looking into your requirement and after an investigation, I determined that the reason why the digit 9 is represented as a fillable spot is because it is treated as a special character, exactly as you suggested. There are two approaches I can suggest to you in order to work around this behavior.
<igx-input-group> <igx-prefix> <igx-icon>phone</igx-icon> </igx-prefix> <igx-prefix>(966) </igx-prefix> <label igxLabel>Phone</label> <input igxInput type="text" [igxMask]="'##### ####'"/> </igx-input-group>
<input igxInput type="text" [promptChar] = "'/9'" [igxMask]="'(966)##### ####'"/>
Additionally, I have logged this behavior in our GitHub repository and you can view the issue here. Any concerns or questions that you have can be directly addressed in the issue, which will give you the opportunity to directly communicate with our development team.
In order to receive a notification whenever a new information is available please make sure that you are subscribed to the issue. This can be achieved via the “Subscribe” button.
Let me know if I may be of any further assistance.
Sincerely,
Teodosia Hristodorova
Associate Software Developer