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

BUG: Popover closes itself even though popover-is-open is set to true #5337

Closed
shyamal890 opened this issue Jan 24, 2016 · 2 comments
Closed

Comments

@shyamal890
Copy link

Following are the options set:

    uib-popover="I am activated manually" 
    popover-is-open="true" 
    popover-trigger="none"
    popover-append-to-body="true"

When a route change occurs(ui-router) the popover closes itself.

  • Version Info:
  • Angular UI Bootstrap version: 1.1.0
  • UI-Router version: 0.2.15
  • Angularjs version: 1.4.7

Demonstration in PLUNKER

@shyamal890
Copy link
Author

Can anyone please have a look at this: @wesleycho @icfantv

@wesleycho
Copy link
Contributor

Looks like the culprit is https://github.com/angular-ui/bootstrap/blob/master/src/tooltip/tooltip.js#L544-L553 - this seems like odd code to me, and history seems to indicate that it is old as 041261b is the original commit.

I'm in favor of just removing this outright, the scope.$on('$destroy', ...) listener should be enough to catch this.

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

Successfully merging a pull request may close this issue.

2 participants