mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel
This commit is contained in:
commit
299d83df98
2 changed files with 4 additions and 4 deletions
|
@ -292,10 +292,10 @@ class Form extends Component {
|
|||
field.help = fieldSchema.description;
|
||||
}
|
||||
|
||||
// nested fields: set formInput to "nested"
|
||||
// nested fields: set input to "nested"
|
||||
if (fieldSchema.schema) {
|
||||
field.nestedSchema = fieldSchema.schema;
|
||||
field.formInput = 'nested';
|
||||
field.input = 'nested';
|
||||
// get nested schema
|
||||
// for each nested field, get field object by calling createField recursively
|
||||
field.nestedFields = this.getFieldNames({ schema: field.nestedSchema }).map(subFieldName => {
|
||||
|
|
|
@ -62,8 +62,8 @@ class FormNested extends PureComponent {
|
|||
};
|
||||
|
||||
render() {
|
||||
// do not pass FormNested's own value and control props down
|
||||
const properties = _.omit(this.props, 'value', 'control');
|
||||
// do not pass FormNested's own value, control and inputProperties props down
|
||||
const properties = _.omit(this.props, 'value', 'control', 'inputProperties');
|
||||
|
||||
return (
|
||||
<div className="form-group row form-nested">
|
||||
|
|
Loading…
Add table
Reference in a new issue