Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit 73d3e91

Browse files
committed
Clarifying nested forms in docs. Fixes #490
1 parent 5e87f04 commit 73d3e91

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/api/Form.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,6 @@ _(Any)_ The `component` that the `<Form>` should be rendered to (default: `"form
146146

147147
### Notes
148148
- For React Native, the `View` component is used to render the form, if you `import { Form } from 'react-redux-form/native'`.
149+
- In HTML, you are not allowed to nest forms. If you do want to nest forms, you will have to do one of the following:
150+
- If you want a nested form that doesn't submit, you can set the nested form's component to something other than `'form'`, like `<Form component="div" ...>`
151+
- If you _do_ want a "form" inside a form that does submit, you'll have to set the component and submit manually by dispatching `actions.validSubmit(model, promise)`.

0 commit comments

Comments
 (0)