Roo/bootstrap/Popover.js
authorAlan Knowles <alan@roojs.com>
Fri, 25 Jun 2021 08:03:29 +0000 (16:03 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 25 Jun 2021 08:03:29 +0000 (16:03 +0800)
Roo/bootstrap/Popover.js

index f002190..7f3d846 100644 (file)
@@ -447,7 +447,7 @@ Roo.apply(Roo.bootstrap.Popover, {
 
     onMouseDown : function(e)
     {
-        if (!e.getTarget(".roo-popover")) {
+        if (this.popup.length, !e.getTarget(".roo-popover") && this.popup.length) {
             /// what is nothing is showing..
             this.hideAll();
         }
@@ -463,7 +463,7 @@ Roo.apply(Roo.bootstrap.Popover, {
         }
         // hide other popups.
         popup.on('show', Roo.bootstrap.Popover.onShow);
-        popup.on('hide', Roo.bootstrap.Popover.onShow);
+        popup.on('hide', Roo.bootstrap.Popover.onHide);
         this.hideAll();
         this.popups.push(popup);
     },