#1113 - Fix for show values on completed form

This commit is contained in:
Vito Albano
2016-11-23 01:58:30 +00:00
committed by Mario Romano
parent 98f3cc25f8
commit 424511d1f6
15 changed files with 261 additions and 73 deletions

View File

@@ -84,7 +84,7 @@ export class DropdownWidget extends WidgetComponent implements OnInit {
getOptionValue(option: FormFieldOption): string {
let optionValue: string = '';
if (option.id === 'empty') {
if (option.id === 'empty' || option.name !== this.field.value) {
optionValue = option.id;
} else {
optionValue = option.name;