-
Notifications
You must be signed in to change notification settings - Fork 95
fix: tooltip ID cleanup #3096
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 ID cleanup #3096
Conversation
@mdmower-csnw Does this PR match your expectation? |
@brandonlenz - This fixes the issues I mentioned in comment #3094 (comment), so from that perspective it's ok (the pull request description could use a little work, though). As far as what good this PR and #3094 do for users... I'm less clear. The ID is still generated, not definable as requested in #2562. There's a better chance that the ID will be the same each time a test suite runs (for example |
The main benefit is that React's Making |
@brandonlenz any remaining concerns? |
856f5e8
to
453c3b8
Compare
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.
lgtm
Summary
Related Issues or PRs
Cleanup based on PR feedback to #3094
Use hooks properly (per react's rules of hooks) in generating and using the ID for the tooltip component.
How To Test
Pure refactor/bug fix.
Screenshots (optional)
No react hooks warnings when loaded
