attempt to fix issue with checkbox value type

pull/9/head^2
Chris Veilleux 2019-09-15 19:47:43 -05:00
parent 1328203f2f
commit 50e30685b2
3 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@
<mat-checkbox
*ngSwitchCase="'checkbox'"
[value]="fieldValue"
[checked]="fieldValue === 'true'"
[checked]="fieldValue === true"
(change)="onCheckboxChange($event)"
>
{{fieldDefinition.label}}

View File

@ -14,7 +14,7 @@ export class SettingFieldComponent implements OnInit {
@Input() settingsValues: any;
@Output() newValue = new EventEmitter<SettingChange>();
@Output() skillAuthentication = new EventEmitter<string>();
public fieldValue: string;
public fieldValue: string | boolean | number;
constructor() { }

View File

@ -8,5 +8,5 @@ export interface SettingField {
type: string;
label: string;
options?: SelectOptions[];
value?: string;
value?: string | boolean | number;
}