mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Start fix for default option on dropdown
This commit is contained in:
committed by
Mario Romano
parent
4970920643
commit
55d73b8006
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user