Open
Description
Steps to reproduce
- Open the Plunker demo
- Notice that the "Marital status" dropdown contains 3 blank entries
- If the
x-schema-form
attributes are removed from the schema and moved to the form definition, it works. In other words, you can workaround the issue by changing the schema to:
maritalStatus: {
title: 'Marital status',
type: 'string',
'enum': ['married', 'single', 'cohabitating']
}
and changing the form definition to:
$scope.form = [{
key: 'person.details.maritalStatus',
titleMap: {
married: 'Married',
single: 'Single / separated / divorced / widow(er)',
cohabitating: 'Living with a partner'
}
}];
The Plunker demo is using the latest code from the dev branches of angular-schema-form and angular-schema-form-bootstrap.
@json-schema-form/angular-schema-form-lead