Skip to content

tooltip position changes from render to render #718

@vlukashov

Description

@vlukashov

With react-tooltip 4.2.21 the tooltip position is unstable - the tooltip jumps around from render to render and sometimes it completely covers the anchor element:

react-tooltip-issue

<div
  style={{
    padding: "8rem 1rem 8rem",
    background: "#eeeeee",
    textAlign: "right"
  }}
>
  <span data-tip="In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document or a typeface without relying on meaningful content. Lorem ipsum may be used as a placeholder before final copy is available.">
    Hower to see the <code>react-tooltip</code> tooltip
  </span>
  <ReactTooltip effect="solid" place="top"></ReactTooltip>
</div>

Full demo: https://codesandbox.io/s/reacttooltip-issue-demo-xggki?file=/index.js

This issue looks somewhat similar to these other issues in this repo: #476, #219, #264

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions