Skip to content
Snippets Groups Projects
Commit 824266d6 authored by mathias.chouet's avatar mathias.chouet
Browse files

Fix #160 : suppression de la validation sur "step"

parent 8c0052fd
No related branches found
No related tags found
No related merge requests found
......@@ -51,15 +51,10 @@
<mat-form-field>
<input matInput class="form-control" type="number" inputmode="numeric" name="step-value" step="0.01"
[placeholder]="uitextPasVariation" [(ngModel)]="stepValue" #step="ngModel" name="step"
[appJalhydModelValidationStep]="param" required pattern="^-?([0-9]*\.)?([0-9]+[Ee]-?)?[0-9]+$">
required pattern="^-?([0-9]*\.)?([0-9]+[Ee]-?)?[0-9]+$">
<mat-error *ngIf="step.errors">
<div *ngIf="step.errors.required || step.errors.pattern">
{{ uitextMustBeANumber }}
</div>
<div *ngIf="! step.errors.required && step.errors.jalhydModelStep">
{{ step.errors.jalhydModelStep.message }}
</div>
{{ uitextMustBeANumber }}
</mat-error>
</mat-form-field>
</form>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment