I am struggling to hide the popover when clicking outside the modal. I have been able to hide it on close, but not when clicking outside the modal. Here is the code snippet:
$('.close, .close-button').click(function(){
$(".popover.bottom").css('display', 'none');
});
Although I attempted to hide the popover by clicking outside the modal, it only hides when I click inside the modal.
$("#myModal").click(function(){
if(($("#myModal").attr('aria-hidden')) == 'false'){
$(".popover.bottom").not('.modal-content').css('display', 'none');
}
});
Can anyone provide assistance with this issue?