-
Notifications
You must be signed in to change notification settings - Fork 75
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
feat(tooltip): support touch events #9487
base: dev
Are you sure you want to change the base?
Conversation
This PR has been automatically marked as stale because it has not had recent activity. Please close your PR if it is no longer relevant. Thank you for your contributions. |
@jcfranco can we do this one for June release? |
@@ -151,15 +163,15 @@ export default class TooltipManager { | |||
private addListeners(): void { | |||
window.addEventListener("keydown", this.keyDownHandler, { capture: true }); | |||
window.addEventListener("pointermove", this.pointerMoveHandler, { capture: true }); | |||
window.addEventListener("click", this.clickHandler, { capture: true }); | |||
window.addEventListener("pointerdown", this.pointerDownHandler, { capture: true }); |
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.
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.
done! had to remove a test which is no longer appropriate.
@jcfranco ready for review again |
It looks like there is a difference in behavior when clicking on an open tooltip (triggered by hovering the reference element): dev (remains open on tooltip click) PR (closes on tooltip click) Not sure if it's related to the removed test. |
@jcfranco I'm not seeing any difference there. |
For posterity, reached out to Matt and a step I missed to include was to hover over the reference element to display the tooltip before clicking. We also spotted an issue where clicking the reference element to toggle the tooltip and then clicking on the tooltip would close for both dev and the PR. |
This PR has been automatically marked as stale because it has not had recent activity. Please close your PR if it is no longer relevant. Thank you for your contributions. |
Related Issue: #9273
Summary