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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tooltip): handle SSR in useTooltipInPortal #1672

Merged
merged 2 commits into from Mar 22, 2023

Conversation

korompaiistvan
Copy link
Contributor

馃挜 Breaking Changes

  • none

馃殌 Enhancements

  • none per se

馃摑 Documentation

  • no API changes

馃悰 Bug Fix

  • useTooltipInPortal relies on the window scroll position but that is not available on the server. these changes use a common method for detecting server side rendering

馃彔 Internal

@korompaiistvan korompaiistvan marked this pull request as ready for review March 19, 2023 18:48
Copy link
Collaborator

@williaster williaster left a comment

Choose a reason for hiding this comment

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

this lgtm, thanks for the fix @korompaiistvan ! 馃檹

@williaster williaster changed the title fix SSR for useTooltipInPortal fix(tooltip): handle SSR in useTooltipInPortal Mar 22, 2023
@williaster williaster merged commit 590bbd2 into airbnb:master Mar 22, 2023
2 checks passed
@github-actions
Copy link

馃帀 This PR is included in version v3.1.2 of the packages modified 馃帀

@korompaiistvan
Copy link
Contributor Author

apologies, I got swept away by life. thank you for the changes and merging!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants