Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip still visible and stuck when transitioning to previous page #1419

Open
tuhlmann opened this issue Jul 23, 2022 · 0 comments
Open

Tooltip still visible and stuck when transitioning to previous page #1419

tuhlmann opened this issue Jul 23, 2022 · 0 comments

Comments

@tuhlmann
Copy link

Describe the bug A clear and concise description of what the bug is.

We use react-md 5.1.3

In our app we use tooltips like this:

<HoverModeProvider defaultVisibleInTime={200}>
  <Tooltipped id="weight-low" dense tooltip="Can (Low Priority)">
    <div>...</div>
  </Tooltipped>
</HoverModeProvider>

The HoverModeProvider is part of the component. Displaying the tooltips works just as it should. The problem occurs when I leave the page while the tooltip is still visible- on a Mac I can for instance do this by triggering the "browser back" with "CMD+Left".

In this case the tooltip remains on the previous page or any page loaded afterwards and will not go away. The only way to get rid of it is to CMD+R reload the page.

To Reproduce Steps to reproduce the behavior:

  • Trigger a react-md tooltip to become visible
  • Press CMD+Left (or CTRL+Left I guess) to go back to the previous page
  • => tooltip is still visible and won't go away.

Expected behavior A clear and concise description of what you expected to
happen.

Have some way to make the tooltip disappear.

Screenshots If applicable, add screenshots to help explain your problem.

The page where the tooltip should appear:

2022-07-23_15-10-32

Tooltip stuck on page, even though I went back to previous page:

2022-07-23_15-09-54

Desktop (please complete the following information):

  • OS: MacOS Mojave
  • Browser: latest MS Edge, Chrome, Firefox
@tuhlmann tuhlmann added the bug label Jul 23, 2022
@mlaursen mlaursen added this to the v5.1.4 milestone Jul 24, 2022
@mlaursen mlaursen removed this from the v5.1.4 milestone Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants