Skip to content

[BUG] Position not correct alongside react-window / react-virtualized-auto-sizer #1222

@pickhardt

Description

@pickhardt

Bug description

I had some code that was working correctly with react-tooltip, and a few hundred items. I then used react-window and react-virtualized-auto-sizer but now the tooltips show up in the top left corner of the webpage. They are not getting the top / left offsets applied correctly. Here's what I added:
import { FixedSizeGrid } from 'react-window';
import AutoSizer from 'react-virtualized-auto-sizer';

I double checked my code and don't think it's a bug on my end. I even tried changing the anchorSelect to use unique ids but that didn't help.

Version of Package
5.26.4

To Reproduce
import { FixedSizeGrid } from 'react-window';
import AutoSizer from 'react-virtualized-auto-sizer';
Then implement an AutoSizer followed by a child FixedSizeGrid with divs that have a tooltip.

Expected behavior
Tooltip should show up right above the elements, not in the top left corner.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugStaleThis has not seen activity in quite some time

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions