Browse Source
Merge pull request #197 from dsbegnoche/master
Number/Radio with Default Value always invalid
pull/199/head
Sebastian Stehle
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
src/Squidex/app/features/content/pages/content/content-field.component.html
-
src/Squidex/app/shared/services/schemas.service.ts
|
|
|
@ -38,7 +38,7 @@ |
|
|
|
<div *ngSwitchCase="'Radio'"> |
|
|
|
<div class="form-check form-check-inline" *ngFor="let value of field.properties.allowedValues"> |
|
|
|
<label class="form-check-label"> |
|
|
|
<input class="form-check-input" type="radio" value="{{value}}" [formControlName]="partition"> {{value}} |
|
|
|
<input class="form-check-input" type="radio" [value]="value" [formControlName]="partition"> {{value}} |
|
|
|
</label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
@ -426,7 +426,7 @@ export class NumberFieldPropertiesDto extends FieldPropertiesDto { |
|
|
|
} |
|
|
|
|
|
|
|
if (this.allowedValues && this.allowedValues.length > 0) { |
|
|
|
validators.push(ValidatorsEx.validValues(this.allowedValues.map(String))); |
|
|
|
validators.push(ValidatorsEx.validValues(this.allowedValues)); |
|
|
|
} |
|
|
|
|
|
|
|
return validators; |
|
|
|
|