Skip to content

[BUG] Tooltip is not tracking trigger element when resizing window #1057

@hurrmun

Description

@hurrmun

Bug description
resizing the window does not move the tooltip along with the anchor element

Version of Package
v5.18.0

To Reproduce
codesandbox: https://codesandbox.io/p/sandbox/react-tooltip-resize-tracking-mszsgp?file=%2Fsrc%2FApp.tsx%3A6%2C17

Expected behavior
Expected the tooltip to track the trigger element upon page resize

Desktop (please complete the following information if possible or delete this section):

  • OS: MacOS
  • Browser: Chrome
  • Frameworks [e.g. React 17/18, Vite]

Additional context
Not sure if this is considered a bug as the behaviour is not explicitly stated on the docs, but floating-ui seems to support the resize using autoUpdate and the library already tracks scrolling

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions