Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Doc] Fix <SaveButton formId> prop should be called <SaveButton form> #7658

Merged
merged 1 commit into from
May 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/Form.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const PostCreate = () => (

## `id`

Normally, a submit button only works when placed inside a `<form>` tag. However, you can place a submit button outside of the form if the submit button `form_id` matches the form `id`.
Normally, a submit button only works when placed inside a `<form>` tag. However, you can place a submit button outside of the form if the submit button `form` matches the form `id`.

Set this form `id` via the `id` prop.

Expand All @@ -93,7 +93,7 @@ export const PostCreate = () => (
<NumberInput source="nb_views" />
</Stack>
</Form>
<SaveButton formId="post_create_form" />
<SaveButton form="post_create_form" />
</Create>
);
```
Expand Down
4 changes: 2 additions & 2 deletions docs/SimpleForm.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const PostCreate = () => (

## `id`

Normally, a submit button only works when placed inside a `<form>` tag. However, you can place a submit button outside of the form if the submit button `form_id` matches the form `id`.
Normally, a submit button only works when placed inside a `<form>` tag. However, you can place a submit button outside of the form if the submit button `form` matches the form `id`.

Set this form `id` via the `id` prop.

Expand All @@ -97,7 +97,7 @@ export const PostCreate = () => (
<RichTextInput source="body" />
<NumberInput source="nb_views" />
</SimpleForm>
<SaveButton formId="post_create_form" />
<SaveButton form="post_create_form" />
</Create>
);
```
Expand Down
4 changes: 2 additions & 2 deletions docs/TabbedForm.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export const PostCreate = () => (

## `id`

Normally, a submit button only works when placed inside a `<form>` tag. However, you can place a submit button outside of the form if the submit button `form_id` matches the form `id`.
Normally, a submit button only works when placed inside a `<form>` tag. However, you can place a submit button outside of the form if the submit button `form` matches the form `id`.

Set this form `id` via the `id` prop.

Expand All @@ -132,7 +132,7 @@ export const PostCreate = () => (
<TabbedForm toolbar={false} id="post_create_form">
...
</TabbedForm>
<SaveButton formId="post_create_form" />
<SaveButton form="post_create_form" />
</Create>
);
```
Expand Down