Skip to content

fix(tooltip): don't pass in a ref as it's not actually needed #82

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Aug 2, 2019

Conversation

ryanseddon
Copy link
Contributor

  • BREAKING CHANGE?

Description

Passing in the tooltip ref was completely pointless and made it hard to work with.

Detail

I believe I was trying to work around the bug fixed here rather than actually needing the ref to the tooltip for any useful reason.

Even though this removes a prop it's not actually a breaking change since you can still pass the ref and it'll work fine, it just doesn't use the ref passed.

I think this react PR merged in the latest react (beta/alpha?) might fix the underlying issue and not require the isMount tracking.

facebook/react#15650

Checklist

  • 🌐 Storybook demo is up-to-date (yarn start)
  • analyzed via axe and evaluated using VoiceOver
  • 💂‍♂️ includes new unit tests
  • 📝 tested in Chrome, Firefox, Safari, Edge, and IE11

@ryanseddon ryanseddon requested a review from a team August 1, 2019 05:14
@ryanseddon ryanseddon merged commit 75c77bc into master Aug 2, 2019
@ryanseddon ryanseddon deleted the ryan/tooltip_simplification branch August 2, 2019 00:24
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants