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.

API to show/ hide popover and tooltip

See original GitHub issue

What problem does this feature solve?

By adding this feature, one can control the visibility of popover or tooltip.

Use case:

I’ve a popover which triggers on hover. In the content of the popover, I’ve a clickable item. When clicked, it takes me to a new route(react-router). After going to the new route, I need the popover to hide.

Current Secenario

As hover is handled internally there is no way to show/hide tooltip/popover manually. visible will not help as onMouseOut will close the popover.

Example:

Check this https://codesandbox.io/s/z3k94jy6y3

What does the proposed API look like?

<Popover>.show() - show function over an instance of popover/tooltip

<Popover>.hide() - hide function over an instance of popover/tooltip

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
khahtcommented, Mar 16, 2019

if i have multi Popover?? Visibled all

4reactions
jiananshicommented, Aug 30, 2019

This issues is definitely shouldn’t be marked as closed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Show and Hide the Popover - DevExtreme - DevExpress
To show or hide the Popover programmatically, call the show() or hide() method. The same thing can be done using the toggle(showing) method....
Read more >
How to hide Bootstrap 3 popover when another popover is ...
If you want to manually hide and show the popover, set "trigger: manual" in your popover configuration. Aside from that, there is no...
Read more >
Popovers - Bootstrap
Popovers must be hidden before their corresponding elements have been removed from the DOM. Keep reading to see how popovers work with some...
Read more >
Popovers - Bootstrap - University of Houston
For performance reasons, the Tooltip and Popover data-apis are opt-in, meaning you must initialize them ... Don't try to show popovers on hidden...
Read more >
Popover - Ant Design
Comparing with Tooltip , besides information Popover card can also provide action elements like links and buttons. Examples. Hover ...
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