Skip to content

CloneButton should sanitize its rest props #2781

Description

@djhi

What you were expecting:
Using a <CloneButton /> inside an <Toolbar /> from an Edit view should not trigger any React warnings

What happened instead:
Lots of warnings about unkown props passed by the <Toolbar />

Steps to reproduce:
Using a <CloneButton /> inside an <Toolbar /> from an Edit view .

Related code:
https://github.com/marmelab/react-admin/blob/master/packages/ra-ui-materialui/src/button/CloneButton.js#L25

Environment

  • React-admin version: 2.6.1
  • Last version that did not exhibit the issue (if applicable):

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions