Skip to content

The component property is not definable in <DeleteWithConfirmButton> #9389

Open
@antoinefricker

Description

@antoinefricker

What you were expecting:

Be able to specify component property of the <DeleteWithConfirmButton> component.

What happened instead:

Setting <DeleteWithConfirmButton component="a" ... /> (which is acceptable for the React-Admin or MUI <Button> components) will trigger a TS error:

Type '"a"' is not assignable to type '"button"'.

The same behavior is applicable to <CloneButton /> so it might be a more global issue.

Related code:

https://stackblitz.com/edit/github-uvsgue?file=src%2Fusers%2FUserEdit.tsx

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions