I have created a popover (bs-popover from angular-strap) that automatically closes after clicking outside of popover. I want to stop closing popover when a condition is true
.
I used this event listener:
$scope.$on('tooltip.hide.before', function(event, ui) {
if(something === true){
console.log('HERE'); // Writes HERE on close popover
event.preventDefault();
}
});
But it fails to stop event. Any solution?