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] Hide Tooltip when its child gets disabled (#44… #44507

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chudesno
Copy link

@chudesno chudesno commented Nov 21, 2024

This PR handles blurring of a child element when it is getting disabled.
React does not fire blur event in such case, so we resort to using native blur event instead.
facebook/react#9142

Fixes #44280

After fix: https://codesandbox.io/p/sandbox/material-ui-cra-ts-forked-2fskvz?file=%2Fsrc%2FApp.tsx%3A5%2C51

@mui-bot
Copy link

mui-bot commented Nov 21, 2024

Netlify deploy preview

https://deploy-preview-44507--material-ui.netlify.app/

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against c9f8f25

@chudesno chudesno force-pushed the tooltip-persists-when-its-child-becomes-disabled branch from 0b61f7e to c9f8f25 Compare November 22, 2024 00:02
@zannager zannager added the component: Toolbar The React component. label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: Toolbar The React component.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[material-ui][Tooltip] Tooltip persists when its child becomes disabled
3 participants