From 8d461020d195e1f67a6485c48aa3732387aeb35f Mon Sep 17 00:00:00 2001 From: asvarcas Date: Wed, 1 Apr 2020 12:01:23 -0300 Subject: [PATCH 1/3] Fix docs regarding sanitation of buttons. --- docs/CreateEdit.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/docs/CreateEdit.md b/docs/CreateEdit.md index cf042babf51..93e34a89ea5 100644 --- a/docs/CreateEdit.md +++ b/docs/CreateEdit.md @@ -1057,10 +1057,15 @@ Here are the props received by the `Toolbar` component when passed as the `toolb **Tip**: To alter the form values before submitting, you should use the `handleSubmit` prop. See [Altering the Form Values before Submitting](#altering-the-form-values-before-submitting) for more information and examples. -**Tip**: If you want to include a `` in the ``, the props injected by `` to its children (`handleSubmit`, `handleSubmitWithRedirect`, `onSave`, `invalid`, `pristine`, `saving`, and `submitOnEnter`) will cause React warnings. You'll need to wrap `` in another component and ignore the injected props, as follows: +**Tip**: If you want to include a custom `Button` that doesn't render a react-admin `