From 1df3e3520f00b9b0d25d4892f9e77db8ba418d7e Mon Sep 17 00:00:00 2001 From: Stephen Demjanenko Date: Tue, 3 Nov 2015 18:32:48 -0800 Subject: [PATCH] Formsy.Form: omit Formsy-only props from the `
` component --- src/main.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 7edb786d..c2eaa43d 100644 --- a/src/main.js +++ b/src/main.js @@ -424,9 +424,23 @@ Formsy.Form = React.createClass({ this.validateForm(); }, render: function () { + var { + mapping, + validationErrors, + onSubmit, + onValid, + onInvalid, + onInvalidSubmit, + onChange, + reset, + preventExternalInvalidation, + onSuccess, + onError, + ...nonFormsyProps + } = this.props; return ( - + {this.props.children}
);