Skip to content

Don't require Element prop-type in Tooltip #293

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

Merged
merged 1 commit into from
Aug 27, 2020

Conversation

caseywilliams
Copy link
Contributor

Fixes #284 - Referencing Element can cause errors in SSR contexts -
this lets Tooltip's target prop fall back to PropTypes.any when
Element is undefined.

Fixes puppetlabs#284 - Referencing `Element` can cause errors in SSR contexts -
this lets `Tooltip`'s `target` prop fall back to `PropTypes.any` when
`Element` is undefined.
@caseywilliams caseywilliams requested a review from a team as a code owner August 27, 2020 17:52
Copy link
Contributor

@vine77 vine77 left a comment

Choose a reason for hiding this comment

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

LGTM!

@vine77 vine77 merged commit a2476c8 into puppetlabs:development Aug 27, 2020
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.

Tooltip Proptypes reference Element, which can cause SSR issues.
2 participants