Skip to content

Commit

Permalink
Do not pass prepare prop to form
Browse files Browse the repository at this point in the history
  • Loading branch information
nhunzaker committed Nov 12, 2016
1 parent 69e3eda commit 339c1b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 10.7.1

- Do not pass `prepare` prop to form element of Form addon

## 10.7.0

- Added `prepare` method for processing form parameters after they
Expand Down
3 changes: 2 additions & 1 deletion src/addons/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const Form = React.createClass({
propTypes: {
intent : PropTypes.oneOfType([ PropTypes.string, PropTypes.func]),
serializer : PropTypes.func,
prepare : PropTypes.func,
prepare : PropTypes.func,
onSubmit : PropTypes.func,
onDone : PropTypes.func,
onUpdate : PropTypes.func,
Expand All @@ -34,6 +34,7 @@ const Form = React.createClass({

// Remove invalid props to prevent React warnings
delete props.intent
delete props.prepare
delete props.serializer
delete props.onDone
delete props.onUpdate
Expand Down

0 comments on commit 339c1b3

Please sign in to comment.