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
  • #5753
Closed
Open
Issue created Nov 02, 2012 by Administrator@rootContributor

popover with trigger manual -- then toggle doesnt work

Created by: Yohn

since I updated to 2.2.1 from 2.1.1 one of my popovers wasnt working, and I just got around to playing with it tonight and found that the toggle state for the popover isnt working correctly heres a fiddle - http://jsfiddle.net/scK68/2/

I put in the fiddle that if you call $().popover('show') it works correctly, but when I try $().popover('toggle') it does not

I do get a javascript error being called saying e is undefined within the tooltip source, which is pointing at this function

, toggle: function (e) {
      var self = $(e.currentTarget)[this.type](this._options).data(this.type)
      self[self.tip().hasClass('in') ? 'hide' : 'show']()
    }

maybe I'm doing it wrong, but I looked at the docs over and over again with this, and still cant figure out why the toggle switch isnt working when I call it

Assignee
Assign to
Time tracking