Skip to content

Use a Tooltip component with a Tab #12597

@ianoti

Description

@ianoti
  • This is a v1.x issue.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

If I wrap a Tab component in a Tooltip I expect the Tab component to continue reacting to click events

Current Behavior

If the Tab component is wrapped in a Tooltip, any onChange handler specified in the Tabs component to continue operation while the tool tip still displays as normal.

I have made a sandbox here https://codesandbox.io/s/20p06mnxq0 using the material ui example.
As you can see it's possible to switch between Item two and item three but not back to item one.

Current behaviour is that the Tab doesn't switch.

Examples

i'm on v1.4.0
Sandbox illustrating problem is here https://codesandbox.io/s/20p06mnxq0

Context

I'm trying to add tooltips to each Tab inside a parent Tabs container to help remove ambiguity concerning the icons I have used for the tabs.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: tabsChanges related to the tabs.scope: tooltipChanges related to the tooltip.support: questionCommunity support but can be turned into an improvement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions