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

Customize Create and TabbedFrom: remove toolbar #7719

Closed
MBach opened this issue May 20, 2022 · 1 comment · Fixed by #7738
Closed

Customize Create and TabbedFrom: remove toolbar #7719

MBach opened this issue May 20, 2022 · 1 comment · Fixed by #7738
Labels

Comments

@MBach
Copy link

MBach commented May 20, 2022

What you were expecting:
To work like described in the docs.
I want to remove the toolbar with toolbar={false}

What happened instead:

  • The toolbar is still there
  • The doc snippet is not working
ERROR in src/.../create.tsx:31:6
TS2746: This JSX tag's 'children' prop expects a single child of type 'ReactElement<any, string | JSXElementConstructor<any>>', but multiple children were provided.

Steps to reproduce:
Copy paste the docs

Related code:

export const PostCreate = () => (
    <Create>
        <TabbedForm toolbar={false} id="post_create_form">
            ...
        </TabbedForm>
        <SaveButton form="post_create_form" />
    </Create>
);

Environment

  • React-admin version: 4.1.0
  • React version: 17.0.2
  • Browser: Firefox
@slax57
Copy link
Contributor

slax57 commented May 23, 2022

Thanks for submitting this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants