Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #15465
Closed
Open
Issue created Dec 30, 2014 by Administrator@rootContributor

Document that calling tooltip/popover .show()/.hide() qualifies as manual triggering

Created by: markkolich

According to http://getbootstrap.com/javascript/#popovers there doesn't appear to be a way to auto-hide a popover, that is manually shown/triggered, after some interval.

As such, I end up doing this in my application:

button.popover('show');

setTimeout(function() {
  button.popover('hide');
}, button.attr('data-delay-hide') || 2000);

Looking at the documentation on the data-delay attribute for popovers, I see "does not apply to manual trigger type". I conjecture my button.popover('show') falls into this manual trigger category and as a result I'm responsible for hiding the popover myself?

Somewhat expected, I tried <button data-delay='{"hide":3000}'> without the JS above and this failed miserably.

Shouldn't a popover I trigger manually be hidden after the hide delay I provide in the data-delay attribute? If not, I'd like to suggest an update the documentation at http://getbootstrap.com/javascript/#popovers to be a bit clearer with a red callout highlighting this limitation.

Assignee
Assign to
Time tracking