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

[Tooltip] Fix hover issues #12394

Merged
merged 7 commits into from
Aug 3, 2018
Merged

[Tooltip] Fix hover issues #12394

merged 7 commits into from
Aug 3, 2018

Conversation

aseem191
Copy link
Contributor

@aseem191 aseem191 commented Aug 3, 2018

The issue in #12289 describes the issue of one Tooltip preventing the firing of another Tooltip that the first Tooltip is over. This is a fix for that issue.

Closes #12289

@@ -160,12 +160,15 @@ class Tooltip extends React.Component {
}
}

if (event.type === 'mouseenter') {
if (event.type === 'mouseenter' || event.type === 'mouseover') {
this.internalState.hover = true;

if (childrenProps.onMouseEnter) {
Copy link
Member

Choose a reason for hiding this comment

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

What do you think of removing this handler?

@oliviertassinari oliviertassinari changed the title Fixed Tooltip hover issues [Tooltip] Fix hover issues Aug 3, 2018
@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work component: tooltip This is the name of the generic UI component, not the React module! labels Aug 3, 2018
@oliviertassinari oliviertassinari self-assigned this Aug 3, 2018
@oliviertassinari
Copy link
Member

@aseem191 It's a great first pull request on Material-UI 👌🏻. Thank you for giving it a shot!

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.

2 participants