Open DanasPa opened 7 years ago
popup catches the event.
You can solve this by doing something like...
$scope.clickPopupClickOutside = function() {
angular.element(document).click();
}
<button ng-click="clickPopupClickOutside()" class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown">Dropdown<span class="caret"></span>
Bug description:
I'm using a uib-popover with outsideClick trigger. The popover outsideClick trigger works just fine until you click dropdown element. So the problem is then you open a popover and try to click dropdown element popover should disappear and now its not.
Link to minimally-working plunker that reproduces the issue:
plnkr
Steps to reproduce the issue:
Click link to open a popover Click dropdown button
Popover should disappear and now its not.
Version of Angular, UIBS, and Bootstrap Angular: 1.6.3 UIBS: 2.5.0 Bootstrap: 3.3.7