Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mask "IP" validate wrong ip address as valid #688

Closed
MikeSam opened this issue Feb 26, 2020 · 4 comments
Closed

Mask "IP" validate wrong ip address as valid #688

MikeSam opened this issue Feb 26, 2020 · 4 comments

Comments

@MikeSam
Copy link

MikeSam commented Feb 26, 2020

If we use a built-it mask "IP", it validates address like 127.000 as valid ip address
Example:

<mat-form-field fxFlex>
  <input matInput formControlName="test" placeholder="IP" mask="IP">
      <mat-error *ngIf="userForm.controls['test'].hasError('Mask error')">
        Wrong address
      </mat-error>
</mat-form-field>

Expected result:

Get error Mask error fro invalid address 127.000

@thekhegay
Copy link

@NepipenkoIgor any comments?)

@NepipenkoIgor
Copy link
Collaborator

@thekhegay Hi . We will look in priority need to discuss with team.

@NepipenkoIgor
Copy link
Collaborator

@MikeSam @thekhegay Thank you that using our mask. Please try version >= 14.0.1 . If you will have a question please reopen issue.

@thekhegay
Copy link

@NepipenkoIgor @GlebChiz Thank you for fast fix! You make great job 💪

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants