diff --git a/docs/SaveButton.md b/docs/SaveButton.md index 782bf312678..ca437aaf1ee 100644 --- a/docs/SaveButton.md +++ b/docs/SaveButton.md @@ -255,11 +255,13 @@ const transformUser = data => ({ const UserCreateToolbar = () => ( - + ); ``` +**Tip:** You need to set `type="button"` on the `` to use `transform`. Without it, the form would be submitted with the default `transform` from the main page. + ## `type` By default, `` renders a `submit` button. You can change this by passing `type="button"`. It is especially useful when using more than one save button in a form: