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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent Tooltip flickering by updating Positioner #1550

Merged
merged 1 commit into from
Nov 21, 2022
Merged

Prevent Tooltip flickering by updating Positioner #1550

merged 1 commit into from
Nov 21, 2022

Conversation

brandongregoryscott
Copy link
Contributor

Overview

This PR addresses #1548 where a flickering issue was introduced in the Portal/Positioner in #1517. I tested out the change in both the example repo listed in #1512 to verify SSR still works, and a personal project to verify the Tooltip isn't flickering - I couldn't reproduce the issue in Storybook.

I believe the issue is caused from the extra render introduced (this.forceUpdate()) - telling the Positioner to update once the Transition state is entering sets the correct dimensions and x/y points before rendering the children.

Screenshots (if applicable)

Rendering Before After
CSR Before - CSR After - CSR
SSR Before - SSR After- SSR

Documentation

  • Updated Typescript types and/or component PropTypes
  • Added / modified component docs
  • Added / modified Storybook stories

@netlify
Copy link

netlify bot commented Nov 21, 2022

Deploy Preview for evergreen-storybook ready!

Name Link
🔨 Latest commit 228395f
🔍 Latest deploy log https://app.netlify.com/sites/evergreen-storybook/deploys/637ae50998b95600083d132e
😎 Deploy Preview https://deploy-preview-1550--evergreen-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@brandongregoryscott brandongregoryscott marked this pull request as ready for review November 21, 2022 15:07
@brandongregoryscott brandongregoryscott linked an issue Nov 21, 2022 that may be closed by this pull request
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 flickering issue introduced in v6.10.4
2 participants