Skip to content

React Admin buttons don't trigger tooltips #10223

Open
@michel-paiva

Description

@michel-paiva

What you were expecting:
When I wrap a React Admin custom button with a Tooltip, (for example CreateButton) I expect the Tooltip to be shown when I hover over it.

What happened instead:

The tooltip is not shown when hovering over a custom button wrapped by a Tooltip.

Steps to reproduce:

Related code:

Check the example where in the postListActions I have a CreateButton wrapped by a Tooltip and a material-ui here

Other information:

This wasn't introduced now, it seems like an existing issue.
On material-ui doc they have this section talking about custom child components

Environment

  • React-admin version: 5.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions