Skip to content

[tooltip] Controlled state does not work #43965

Closed as not planned
Closed as not planned
@alyssaButlerIntegrityNext

Description

Steps to reproduce

Link to live example: (Mui Website, Controlled Tooltips Section)

Steps:

  1. Click on the "CONTROLLED" button in the demo on the MUI webpage for Controlled Tooltips
  2. The tooltip should show or hide depending on the button click.

Current behavior

The tooltip appears on hover, the button click appears to have no effect on the tooltip.

Expected behavior

The tooltip is not controlled by hover interactions but by button click. When I click on the button once, the tooltip should stay open even when I move my mouse away from the button. When I click the button again, the tooltip should disappear.

Context

No response

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: tooltip

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: tooltipThis is the name of the generic UI component, not the React module!support: Stack OverflowPlease ask the community on Stack Overflow

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions