diff --git a/src/components/BoundForm.js b/src/components/BoundForm.js
index 8bf30e3f6..e03f3bc94 100644
--- a/src/components/BoundForm.js
+++ b/src/components/BoundForm.js
@@ -8,12 +8,14 @@ class BoundForm extends React.Component {
children: React.PropTypes.node,
errors: React.PropTypes.object,
object: React.PropTypes.object.isRequired,
- onSubmit: React.PropTypes.func
+ onSubmit: React.PropTypes.func,
+ onChange: React.PropTypes.func
};
static defaultProps = {
errors: {},
- onSubmit: noop
+ onSubmit: noop,
+ onChange: noop
};
constructor(props) {
@@ -32,6 +34,7 @@ class BoundForm extends React.Component {
handleChange = name => data => {
const value = data.target instanceof Element ? data.target.value : data;
this.setState({ formData: set(this.state.formData, name, value) });
+ this.props.onChange(this.state.formData);
}
render() {
diff --git a/test/components/BoundForm.spec.js b/test/components/BoundForm.spec.js
index 810f11715..f87cd0f4a 100644
--- a/test/components/BoundForm.spec.js
+++ b/test/components/BoundForm.spec.js
@@ -24,6 +24,7 @@ describe('