Fixed changes asked on PR - fixed unstable form

This commit is contained in:
Vito Albano
2016-11-25 10:43:43 +00:00
committed by Mario Romano
parent 9c3fa30a0b
commit c418c2e1d5
3 changed files with 4 additions and 3 deletions

View File

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