Skip to content

IBAN mask with label

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)

enter image description here

what i get

enter image description here

what i tried

ngAfterViewInit(): void {
      let selector = document.getElementById('sofortIban');
      Inputmask({'mask': "IBAN" +
          'AA99-9999-9999-9999-9999-99', clearMaskOnLostFocus: false, rightAlign: true}).mask(selector);


Seem to have fixed it by writing "IB\AN" probably that A is reserved for something or other