[Tooltip] Close Tooltip when its child becomes disabled#44507
Conversation
Netlify deploy previewhttps://deploy-preview-44507--material-ui.netlify.app/ Bundle size reportDetails of bundle changes (Toolpad) |
0b61f7e to
c9f8f25
Compare
ZeeshanTamboli
left a comment
There was a problem hiding this comment.
This works as shown in the "After fix" CodeSandbox linked in the description, but since it's a workaround, I believe it should be fixed in React.
|
For all of those component bug fixes, that are not design related, how about we move with a policy that has:
? |
|
It appears that Base UI is affected as well in a similar way. |
c9f8f25 to
499bc06
Compare
Bundle size
Deploy previewhttps://deploy-preview-44507--material-ui.netlify.app/ Check out the code infra dashboard for more information about this PR. |
b0538b5 to
9504754
Compare
|
Added tests and fixed the CI Before: https://stackblitz.com/edit/yk4kuygk?file=src%2FDemo.tsx |
af31d24 to
db7237f
Compare
mj12albert
left a comment
There was a problem hiding this comment.
Thanks for the PR @chudesno
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