Skip to content

Commit

Permalink
forward props
Browse files Browse the repository at this point in the history
  • Loading branch information
ashaffer committed May 6, 2016
1 parent 6a35ecc commit 95703c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ const defaultValidate = () => ({valid: true})
*/

function render ({props, children}) {
const {onSubmit = noop, validate = defaultValidate, cast = identity, loading = false} = props
const {onSubmit = noop, validate = defaultValidate, cast = identity, loading = false, ...rest} = props

return (
<Base tag='form' novalidate onSubmit={handleSubmit} onChange={handleChange}>
<Base tag='form' novalidate onSubmit={handleSubmit} onChange={handleChange} {...rest}>
{children}
</Base>
)
Expand Down

0 comments on commit 95703c6

Please sign in to comment.