Skip to content

[BUG] Float option checks data-tooltip-float existence, not its value #960

@rshelnutt

Description

@rshelnutt

Describe the bug
When data-tooltip-float is defined at all - even if set to false - the tooltip always floats.

Version of Package
v5.8.2

To Reproduce
https://codesandbox.io/s/react-tooltip-v5-8-2-bug-persisting-float-l1fi2r?file=/src/App.js

Expected behavior
When data-tooltip-float is defined, and the value is set to false, it should maintain the default "anchored" display style.

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

  • OS: iOS
  • React 18

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