Skip to content

[BUG] Tooltip scrolls with the page #913

Closed
@MarkNygaard

Description

@MarkNygaard

Describe the bug
I have a "Scroll to top" button in the bottom of my page. When hovering the tooltip shows "Scroll to the top".

For scrolling to the top the button have

onClick={() => {
  window.scrollTo({ top: 0, left: 0, behavior: 'smooth' });
}}

With version 4.5.1 the tooltip disappears at once the button is clicked and the page scrolls to the top. With version 5.5.2 the tooltip is not disappearing but instead scrolling down the page on top of the button.

Version of Package
v5.5.2

Expected behavior
I expected the tooltip to disappear as soon as the button is clicked.

Screenshots
image

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