Roo/bootstrap/Menu.js
authorEdward <edward@roojs.com>
Mon, 30 Mar 2015 03:32:47 +0000 (11:32 +0800)
committerEdward <edward@roojs.com>
Mon, 30 Mar 2015 03:32:47 +0000 (11:32 +0800)
Roo/bootstrap/Menu.js

index ebd751d..0947d87 100644 (file)
@@ -157,8 +157,7 @@ Roo.extend(Roo.bootstrap.Menu, Roo.bootstrap.Component,  {
     onClick : function(e){
         Roo.log("menu.onClick");
         var t = this.findTargetItem(e);
-        Roo.log(t);
-        if(!t){
+        if(!t || t.isContainer){
             return;
         }
         Roo.log(e);
@@ -184,10 +183,7 @@ Roo.extend(Roo.bootstrap.Menu, Roo.bootstrap.Component,  {
         
         this.fireEvent("click", this, t, e);
         
-        if(!t.isContainer){
-            this.hide();
-        }
-        
+        this.hide();
     },
      onMouseOver : function(e){
         var t  = this.findTargetItem(e);