Start fix for default option on dropdown

This commit is contained in:
Vito Albano
2016-11-10 14:15:28 +00:00
committed by Mario Romano
parent 4970920643
commit 55d73b8006
3 changed files with 61 additions and 2 deletions

View File

@@ -80,6 +80,16 @@ export class DropdownWidget extends WidgetComponent implements OnInit {
);
}
getOptionValue(option: FormFieldOption): string {
let optionValue: string = '';
if (option.id === 'empty') {
optionValue = option.id;
} else {
optionValue = option.name;
}
return optionValue;
}
handleError(error: any) {
console.error(error);
}