Clicking somewhere else should close the popovers
auxiliary opened this issue · comments
Mohammad (Moa) Raji commented
Hi
Thanks for this great plugin.
It'd be great if clicking somewhere else on the screen closes any open popover.
I'm not sure, but it seems that this will make it work (Line 79):
$('html').on('click', function(){
last.popover('hide');
});
self.bind('click', function(e) {
e.preventDefault();
e.stopPropagation();
self.popover('show');
...
Sorry I didn't have the time to fork and merge.
Mohammad (Moa) Raji commented
This is more correct:
...
if (last)
{
last.popover('hide');
}
...
Anael FAVRE commented
Thanks for the proposal.
I will take a look in the week :)
Anael FAVRE commented
Fixed here with your piece of code.
But it does not fix #1 =/