I m trying to mask an input field for IBAN entry. I tried to use RobinHerbots/Inputmask in my angular project but couldnt really manage to get exactly what i need. Somehow library is transforming the “IBAN” to “IB_N”. Any ideas how could i use the letter “A” ? (screenshots)
what i get
what i tried
JavaScript
x
6
1
ngAfterViewInit(): void {
2
let selector = document.getElementById('sofortIban');
3
Inputmask({'mask': "IBAN" +
4
'AA99-9999-9999-9999-9999-99', clearMaskOnLostFocus: false, rightAlign: true}).mask(selector);
5
}
6
https://stackblitz.com/edit/angular-ph3dmv?embed=1&file=src/app/app.component.ts
Advertisement
Answer
Seem to have fixed it by writing "IB\AN"
probably that A is reserved for something or other