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 attaching to another mdl component #290

Closed
wants to merge 1 commit into from

Conversation

vipentti
Copy link
Collaborator

Use Options.on instead of Html.Events.on to attach
the event listener. This at least temporarily fixes the issue
where hovering over an MDL component such as Button with a tooltip
would cause the tooltip to stay visible.

NOTE: This might have unintended consequences when using Tooltip
with an MDL component with a ripple effect which also uses the
mouseleave event.

This at least temporarily resolves the Click me case from #240

Use `Options.on` instead of `Html.Events.on` to attach
the event listener. This at least temporarily fixes the issue
where hovering over an MDL component such as `Button` with a tooltip
would cause the tooltip to stay visible.

NOTE: This might have unintended consequences when using `Tooltip`
with an MDL component with a ripple effect which also uses the
`mouseleave` event.
Copy link

@thotypous thotypous left a comment

Choose a reason for hiding this comment

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

It works. I was trying to attach a Tooltip to some text or icons inside a Card, and this PR fixed it.

@achauve
Copy link

achauve commented May 17, 2017

Anyone to merge this?

@aforemny aforemny added this to the v8 milestone Jun 26, 2017
@aforemny
Copy link
Collaborator

I cherry-picked this in new-v8 (f2c6628). Thanks!

Do you have a demo for the unintended side-effects with ripple? Otherwise, I will leave that potential problem to worry about later. :o

@aforemny aforemny closed this Jun 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants