Skip to content

Reposition stopped working going from 3.11.1 to any newer version (3.11.2, 4.x) #574

@perbergland

Description

@perbergland

Sample code here:

https://codesandbox.io/s/competent-hooks-bicfv?file=/src/Tooltip.tsx

After upgrading from 3.11.1, I found that tooltips that won’t fit no longer reposition to some other position (top => left, bottom, right). I have tested this in Safari and Chrome on macOS.

<ReactTooltip
          className={className}
          id={id}
          effect="solid"
          place="top"        
          type={dark ? "dark" : "light"}
        >
          <div className="tooltip__text">{text}</div>
        </ReactTooltip>

Here's what gets displayed with 3.11.1:
Screenshot 2020-04-07 kl  08 34 03

And with 3.11.2 or newer (in this case 3.11.6)
Screenshot 2020-04-07 kl  08 33 44

Help?

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