Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Tooltip to remain open when hovering over it #3040

Closed
lucianenache opened this issue Dec 2, 2014 · 14 comments
Closed

Tooltip to remain open when hovering over it #3040

lucianenache opened this issue Dec 2, 2014 · 14 comments

Comments

@lucianenache
Copy link

Currently the tooltip directive supports only these triggers as defined in the map object:

  // Default hide triggers for each show trigger
  var triggerMap = {
    'mouseenter': 'mouseleave',
    'click': 'click',
    'focus': 'blur'
  };

I was wondering whether it makes sense to support a feature like this: http://jsfiddle.net/WojtekKruszewski/Zf3m7/22/

Where you can hover over the tooltip and it still remains open, this way you enable the users to actually select text inside the tooltip or click links/buttons.

I know that this can be achieved with the focus trigger but imho hover is better from UX perspective.

@sdesmond
Copy link
Contributor

sdesmond commented Feb 4, 2015

This would be great!

@pgu
Copy link

pgu commented Mar 26, 2015

+1

2 similar comments
@jplegoff
Copy link

+1

@quilicicf
Copy link

+1

@RobJacobs
Copy link
Contributor

You can already define the triggers for a tooltip like so:

tooltip-trigger="focus manual"

Additional triggers can be added though the tooltip provider as described in the docs here. PR #2148 adds access to the tooltip scope isOpen variable to allow for more control on when to show and hide the tooltip.

@boillodmanuel
Copy link

I've found a solution in SO which can help for the PR.

@boillodmanuel
Copy link

Another link with vanilla js solution: http://jsfiddle.net/WojtekKruszewski/Zf3m7/22/

@lucianenache
Copy link
Author

well the idea was to have something out of the box, without having to implement additional hooks to the events, but if that's not available for me, the fix was to hook on the events manually and alter the behavior.

@RobJacobs
Copy link
Contributor

@lucianenache Tooltip and popover are 2 separate directives. The links provided by @boillodmanuel refer to the popover widget, not the tooltip. If you are looking for a widget that presents a popup window for user interaction then the popover directive is the better choice, the tooltip directive is not designed for that. Closing this for now.

@boillodmanuel
Copy link

I've created a separate issue for the popover: #3515

Thks

@VenkatRamReddyK
Copy link

Working example of the plunker that solved mouse events on the uib-tabset.
https://plnkr.co/edit/9oMYadXPNJcRPrig71iF?p=preview

@bmrinal
Copy link

bmrinal commented Nov 30, 2017

@VenkatRamReddyK this won't work with popover-append-to-body="true"

@VenkatRamReddyK
Copy link

@bmrinal ,
Yes, I observed that and played around with z-index to fix that.

@bmrinal
Copy link

bmrinal commented Nov 30, 2017 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

10 participants