diff --git a/packages/vulcan-forms/lib/components/FormComponent.jsx b/packages/vulcan-forms/lib/components/FormComponent.jsx index 05c5e15a1..102b1de62 100644 --- a/packages/vulcan-forms/lib/components/FormComponent.jsx +++ b/packages/vulcan-forms/lib/components/FormComponent.jsx @@ -14,6 +14,10 @@ class FormComponent extends Component { this.state = {}; } + static defaultProps = { + formComponents: {} + } + componentWillMount() { if (this.showCharsRemaining()) { const value = this.getValue(); @@ -202,7 +206,7 @@ class FormComponent extends Component { */ getFormInput = () => { const inputType = this.getType(); - const FormComponents = this.getFormComponents; + const FormComponents = this.getFormComponents(); // if input is a React component, use it if (typeof this.props.input === 'function') { @@ -275,7 +279,7 @@ class FormComponent extends Component { } render() { - const FormComponents = this.getFormComponents; + const FormComponents = this.getFormComponents(); if (this.props.intlInput) { return ; @@ -331,6 +335,7 @@ FormComponent.contextTypes = { getDocument: PropTypes.func.isRequired, }; + module.exports = FormComponent registerComponent('FormComponent', FormComponent);