Roo/bootstrap/Menu.js
authorAlan Knowles <alan@roojs.com>
Fri, 11 Jan 2019 06:47:27 +0000 (14:47 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 11 Jan 2019 06:47:27 +0000 (14:47 +0800)
Roo/bootstrap/Menu.js

index 019bce3..9a66f9a 100644 (file)
@@ -326,12 +326,12 @@ Roo.extend(Roo.bootstrap.Menu, Roo.bootstrap.Component,  {
      */
     hide : function(deep)
     {
-        
+        if (true === this.fireEvent("beforehide", this)) {
+           return;
+       }
         this.hideMenuItems();
         if(this.el && this.isVisible()){
-            if (true === this.fireEvent("beforehide", this)) {
-               return;
-           }
+           
             if(this.activeItem){
                 this.activeItem.deactivate();
                 this.activeItem = null;