-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
base: master
Are you sure you want to change the base?
Conversation
… while focused an error is thrown mui#45373 Signed-off-by: Sarathkumar <[email protected]>
Netlify deploy previewhttps://deploy-preview-45378--material-ui.netlify.app/ Bundle size reportDetails of bundle changes (Toolpad) |
… 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]>
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)) { |
There was a problem hiding this comment.
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)
… while focused an error is thrown #45373