Problem with the virtual keyboard of the "ngx-angular-material" angle together with the mask

0
I have a problem with the virtual keyboard of the angular "ngx-material-angular", when the input field has a mask and digit by the virtual keyboard of the angular mask is not respected, but when I type by physical keyboard the mask works perfectly. Has anyone ever experienced this? How to proceed.

Field that must have a mask along with the virtual keyboard.

    <div fxLayout='column' fxFlex='24'>
      <mat-form-field>
        <input matInput placeholder='CPF' formControlName='cpf' [textMask]='{mask: cpfMask}'
               [matKeyboard]="'Portugu\u00eas Brasileiro'" [darkTheme]='true'>
        <mat-error *ngIf='formSolicitante.controls.cpf.errors'>{{getErrorMessage(formSolicitante.controls.cpf)}}</mat-error>
      </mat-form-field>
    </div>

Mask

cpfMask = (rawValue: string): (string | RegExp)[] => {
return [/\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '-', /\d/, /\d/];

}

When I type the physical keyboard.

WhenIdialthevirtualkeyboard

    
asked by anonymous 02.07.2018 / 14:52

0 answers