diff --git a/src/main.js b/src/main.js index cb2ae47..5059093 100644 --- a/src/main.js +++ b/src/main.js @@ -98,7 +98,7 @@ Formsy.Form = React.createClass({ return this.props.mapping(this.model) } else { return Object.keys(this.model).reduce(function (mappedModel, key) { - + var keyArray = key.split('.'); while (keyArray.length) { var currentKey = keyArray.shift(); @@ -435,12 +435,10 @@ Formsy.Form = React.createClass({ }, render: function () { - return React.DOM.form({ - onSubmit: this.submit, - className: this.props.className, - autoComplete: this.props.autoComplete - }, - this.traverseChildrenAndRegisterInputs(this.props.children) + return ( +
+ {this.traverseChildrenAndRegisterInputs(this.props.children)} +
); }