question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

 {/* {mode === ModeType.Card ? (
              <Tooltip title="Grid mode" arrow>
                <GridOnRounded
                  className="c-cursor-pointer"
                  onClick={(e) => {
                    e.stopPropagation();
                    if (mode === ModeType.Card) {
                      setMode(ModeType.Grid);
                    }
                  }}
                  htmlColor="#ffffff"
                  fontSize="large"
                />
              </Tooltip>
            ) : (
              <Tooltip title="Card mode" arrow>
                <img
                  alt="pic"
                  height={48}
                  className="c-cursor-pointer"
                  onClick={(e) => {
                    e.stopPropagation();
                    if (mode === ModeType.Grid) {
                      setMode(ModeType.Card);
                    }
                  }}
                  src={process.env.PUBLIC_URL + "/sales/card-mode.png"}
                />
              </Tooltip>
            )} */}

after clicking img and moving mouse away fast, the tooltip didn’t disappear.

i checked the dom, the tooltip wasn’t removed from document.body

is there any solution to solve this problem ?

image

image

only when hovering and leaving it again will the tooltip disappear

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
oliviertassinaricommented, Sep 29, 2020

@jiangyh1024 You can do the same with the open prop of the tooltip. If you want to hide the tooltip on click, you could also set a key: https://codesandbox.io/s/keen-resonance-cr25y.

0reactions
eps1loncommented, Oct 7, 2020

Yeah let’s close this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tooltip bug · Issue #36069 · twbs/bootstrap - GitHub
This is caused by putting padding on the tooltip which isn't supported (especially conditionally). The size ends up changing when the placement ...
Read more >
Bootstrap tooltip bug when hovering child node - Stack Overflow
The problem is when I hover any child element of that tooltip element. The element suddenly dissapears or is being repositioned at the...
Read more >
Tooltip Bug - Material Design for Bootstrap
*Expected behavior*The tooltip should persist until the cursor moves away. *Actual behavior*The tooltip flashes and disappears if not used on a button.
Read more >
#12116 (Possible Tooltip Bug) – jQuery - Bug Tracker
This is my first post on this bug tracker and I am very green in the realm ... I am using the jquery...
Read more >
Tooltip Issues - Bug Report - World of Warcraft Forums
Can we get a fix to the tooltip? Ever since dragonflight UI came out, the tooltip expands right instead of left… It gives...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found