Skip to content

Commit

Permalink
Fix storybook form
Browse files Browse the repository at this point in the history
  • Loading branch information
paradoxxxzero committed Apr 23, 2018
1 parent ac9a20e commit fc4fcbd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion stories/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ import Formol from '../src/Formol'
storiesOf('Formol', module)
.add('An empty form', () => <Formol />)
.add('A simple form with a field', () => (
<Formol onCreate={action('item created')} onPatch={action('item patched')}>
<Formol
onSubmit={(...args) => {
action('item submited')(...args)
return false
}}
>
<Field name="field">Field</Field>
</Formol>
))

0 comments on commit fc4fcbd

Please sign in to comment.