angular-ui / bootstrap

PLEASE READ THE PROJECT STATUS BELOW. Native AngularJS (Angular) directives for Bootstrap. Smaller footprint (20kB gzipped), no 3rd party JS dependencies (jQuery, bootstrap JS) required. Please read the README.md file before submitting an issue!
http://angular-ui.github.io/bootstrap/
MIT License
14.28k stars 6.73k forks source link

uibootstrap popver is not opening when append dynamically #6632

Open jeevasusej opened 7 years ago

jeevasusej commented 7 years ago

I am using the pop over for my directive. In my directive, I am binding the popover dynamically.

For the first time, if we bind, the popover is working fine. If we bind second time with the same settings for the same element, the popover is not triggered.

Here I have stimulated the above usage using the controller. Please refer the following url.

To Reproduce the issue

  1. After loading the link, click the append button
  2. Then click on the popover text. The popover will be opened.
  3. Then click on the same append button.
  4. Now click on the popover text, popover won't trigger.

https://plnkr.co/edit/VliC5f7kq93wUDLXT56o?p=preview.

In this pluker, this is not opening. But in my application, I am getting the two popover. If I comment the following code, the popover works without the issue.

  if (isOpenParse) {
              scope.$watch(isOpenParse, function(val) {
                if (ttScope && !val === ttScope.isOpen) {
                  toggleTooltipBind();
                }
              });
            }