core icon indicating copy to clipboard operation
core copied to clipboard

Validation not happeing for max length

Open dhanarajp opened this issue 7 years ago • 0 comments

Hi Team/ @davidenke

Validation not happening while using virtual keypad, please suggest how to do and acheive this issue:

below is my code:

<mat-form-field class="full-width-input">
   <input matInput placeholder='Use rName' formControlName="userid" required maxlength="16">
   <mat-error *ngIf="isFieldInvalid('userid')"> Please enter the user name </mat-error>
</mat-form-field>

Expectation behavior: if configured maxlength is 16 in input, then it should be not allow more than 16 character

Current behavior it allowing more than 16 character

dhanarajp avatar Jun 04 '18 10:06 dhanarajp