Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[material-ui][Tooltip] Showing and hiding docs seem outdated #40247

Closed
1 task done
MonstraG opened this issue Dec 19, 2023 · 1 comment · Fixed by #40283
Closed
1 task done

[material-ui][Tooltip] Showing and hiding docs seem outdated #40247

MonstraG opened this issue Dec 19, 2023 · 1 comment · Fixed by #40283
Labels
component: tooltip This is the name of the generic UI component, not the React module! docs Improvements or additions to the documentation package: material-ui Specific to @mui/material ready to take Help wanted. Guidance available. There is a high chance the change will be accepted

Comments

@MonstraG
Copy link
Contributor

Duplicates

  • I have searched the existing issues

Related page

https://mui.com/material-ui/react-tooltip/#showing-and-hiding

Kind of issue

Other

Issue description

I was looking for a way to delay closing of a Controlled tooltip. I found this:

Showing and hiding

The tooltip is normally shown immediately [...]. A delay in showing or hiding the tooltip can be added through the enterDelay and leaveDelay props, as shown in the Controlled Tooltips demo above.

In the Controlled Tooltips demo, there is no mention of either prop:

<Tooltip open={open} onClose={handleClose} onOpen={handleOpen} title="Add">
  <Button>Controlled</Button>
</Tooltip>

Instead, they are used in Showing and hiding demo.

Context 🔦

No response

@MonstraG MonstraG added status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: docs-feedback Feedback from documentation page labels Dec 19, 2023
@zannager zannager added docs Improvements or additions to the documentation component: tooltip This is the name of the generic UI component, not the React module! labels Dec 19, 2023
@danilo-leal danilo-leal changed the title [docs] [Tooltip] Showing and hiding docs seem outdated [material-ui][Tooltip] Showing and hiding docs seem outdated Dec 20, 2023
@danilo-leal danilo-leal added package: material-ui Specific to @mui/material and removed support: docs-feedback Feedback from documentation page labels Dec 20, 2023
@mapache-salvaje
Copy link
Contributor

Good catch! Looks like we can just cut that "as shown in..." line from the doc to fix this.

@mapache-salvaje mapache-salvaje added ready to take Help wanted. Guidance available. There is a high chance the change will be accepted and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: tooltip This is the name of the generic UI component, not the React module! docs Improvements or additions to the documentation package: material-ui Specific to @mui/material ready to take Help wanted. Guidance available. There is a high chance the change will be accepted
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants