I use dependencies:
“@maskito/core”: “^1.9.0”,
“@maskito/phone”: “^1.9.0”,
“@maskito/vue”: “^1.9.0”,
the result: I can’t enter any numbers (after +[number] . . . .)
I use dependencies:
“@maskito/core”: “^1.9.0”,
“@maskito/phone”: “^1.9.0”,
“@maskito/vue”: “^1.9.0”,
the result: I can’t enter any numbers (after +[number] . . . .)
Did you get it to work
Check the code
<ion-item>
<ion-input
label="phone number"
placeholder="+91 xxxxx xxxxx"
[maskito]="phoneMask"
[maskitoElement]="maskPredicate"
></ion-input>
</ion-item>
vdo at @techbinomial This is how mask is created for phone
export const phoneMask: MaskitoOptions = {
mask: ['+', '9', '1', ' ', /\b[1-9]\b/, /\d/, /\d/,/\d/,/\d/, ' ', /\d/, /\d/, /\d/, /\d/,/\d/],
};