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

Popover content hides too quickly #7

Closed
sappenin opened this issue May 27, 2013 · 3 comments
Closed

Popover content hides too quickly #7

sappenin opened this issue May 27, 2013 · 3 comments

Comments

@sappenin
Copy link

Is there a way to keep the popover content from going away immediately after mousing-out of the tag? Ideally, the popover content would only go away if another area of the bootstrap-tags UI is clicked, or something outside of the bootstrap-ui is clicked.

For example, if I have a link in the popover, I am currently unable to click that link because the popover disappears as soon as I mouseout of the tag and move into the popover.

@maxwells
Copy link
Owner

Gotcha. Totally valid.

I am thinking to provide an option for setting popover behavior:

  • click to show/hide
  • mouseover/out to show/hide.
  • mouseover to show, click or mouseover another to hide (This seems like your use case)

Does that match up with what you were suggesting?

@maxwells
Copy link
Owner

Pushed change that allows for three different popover trigger types:
'click' - need to click a specific tag to show and hide
'hover' - mouseover/out shows/hides a specific tag
'hoverShowClickHide' - hovering over a tag will hide all other popovers and show the one associated with the tag moused over. Clicking anywhere in the document will hide all popovers.

$(selector).tags({
    popoverTrigger: 'click' // or 'hover' or 'hoverShowClickHide'
});

If 'hoverShowClickHide' doesn't end up working with links, let me know. I didn't end up testing it, because I wasn't successful at putting a link into a popover (am using http://twitter.github.io/bootstrap/javascript.html#popovers)

@sappenin
Copy link
Author

Nice, thanks!

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

No branches or pull requests

2 participants