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

Fix: [Tooltip] When wrapping an input which is disabled… #45378

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sarathkumarsasi
Copy link

@sarathkumarsasi sarathkumarsasi commented Feb 21, 2025

… while focused an error is thrown #45373

… while focused an error is thrown mui#45373

Signed-off-by: Sarathkumar <[email protected]>
@mui-bot
Copy link

mui-bot commented Feb 21, 2025

Netlify deploy preview

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

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against 06fa60e

@zannager zannager added the component: tooltip This is the name of the generic UI component, not the React module! label Feb 23, 2025
@zannager zannager requested a review from siriwatknp February 23, 2025 13:03
@mj12albert mj12albert changed the title [material-ui] Fix: [Tooltip] When wrapping an input which is disabled… Fix: [Tooltip] When wrapping an input which is disabled… Feb 24, 2025
@mj12albert mj12albert added the bug 🐛 Something doesn't work label Feb 24, 2025
… while focused an error is thrown mui#45373

Signed-off-by: Sarathkumar <[email protected]>
… while focused an error is thrown mui#45373

Fixed linting issue.

Signed-off-by: Sarathkumar <[email protected]>
@sarathkumarsasi
Copy link
Author

Hi @siriwatknp, please review the fix when you are free.

@@ -492,7 +492,7 @@ const Tooltip = React.forwardRef(function Tooltip(inProps, ref) {
setChildNode(event.currentTarget);
}

if (isFocusVisible(event.target)) {
if (event && isFocusVisible(event.target)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sarathkumarsasi Did you test that this fixes the issue?

Please see the diff I posted, I think the problem is in handleBlur and not handleFocus: #45373 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: tooltip This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants