Skip to content

Commit

Permalink
Add support for passing custom mutators to final-form.form via django…
Browse files Browse the repository at this point in the history
…-bananas.forms.Form
  • Loading branch information
skrhlm committed Oct 18, 2019
1 parent 9e88f01 commit c839741
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/forms/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ class Form extends React.Component {
};

render() {
const { route, children, formProps, ...props } = this.props;
const { route, children, formProps, mutators, ...props } = this.props;
return (
<MuiPickersUtilsProvider utils={DateFnsUtils}>
<FForm
{...props}
mutators={{ ...arrayMutators }}
mutators={{ ...arrayMutators, ...mutators }}
onSubmit={this.handleSubmit}
>
{({ handleSubmit, ...childProps }) => (
Expand Down

0 comments on commit c839741

Please sign in to comment.