Do not use preventDefault() with .close-popover when there is no popover opened
This commit is contained in:
parent
02106b4747
commit
47c1bc9652
File diff suppressed because one or more lines are too long
|
|
@ -21,11 +21,14 @@ Popover.prototype.open = function(link) {
|
|||
};
|
||||
|
||||
Popover.prototype.close = function(e) {
|
||||
if (e) {
|
||||
e.preventDefault();
|
||||
}
|
||||
if (this.isOpen()) {
|
||||
|
||||
$('#popover-container').remove();
|
||||
if (e) {
|
||||
e.preventDefault();
|
||||
}
|
||||
|
||||
$('#popover-container').remove();
|
||||
}
|
||||
};
|
||||
|
||||
Popover.prototype.onClick = function(e) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue