Skip to content

Commit

Permalink
Merge pull request #2019 from bcgov/bugfix/ALCS-2332-fix-map-area-hec…
Browse files Browse the repository at this point in the history
…tares-precision

ALCS-2332 Added 5 decimal places validation and user hint
  • Loading branch information
fbarreta authored Dec 16, 2024
2 parents c9d34d4 + a05a236 commit a2b3002
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@
<mat-icon>warning</mat-icon>
<div *ngIf="mapArea.errors?.['required']">This field is required</div>
</div>
<div>
<mat-hint class="subtext"> Example: 1.12345 (can be up to 5 decimal places) </mat-hint>
</div>
</div>

<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
<mat-form-field class="full-width-input" appearance="outline">
<input
id="map-area"
mask="separator.2"
mask="separator.5"
thousandSeparator=","
separatorLimit="9999999999"
matInput
Expand All @@ -121,6 +121,9 @@
<mat-icon>warning</mat-icon>
<div *ngIf="mapArea.errors?.['required']">This field is required</div>
</div>
<div>
<mat-hint class="subtext"> Example: 1.12345 (can be up to 5 decimal places) </mat-hint>
</div>
</div>

<div>
Expand Down

0 comments on commit a2b3002

Please sign in to comment.