From 630dab414f408646e11b721f531b6bc8ad4101e1 Mon Sep 17 00:00:00 2001 From: jaulz Date: Tue, 13 Sep 2016 17:21:15 +0200 Subject: [PATCH] Element Types in props were ignored --- src/Form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Form.js b/src/Form.js index c430c5b..9922a50 100644 --- a/src/Form.js +++ b/src/Form.js @@ -58,7 +58,7 @@ export default class Form extends Component { } const { Input } = { ...config } - this.elemTypes = this.getElemTypes(get(Input, 'types', {})) + this.elemTypes = this.getElemTypes(props.elementTypes || get(Input, 'types', {})) // Bind methods this.getStateFromProps = this.getStateFromProps.bind(this)