Roo/bootstrap/menu/Item.js
authorEdward <edward@roojs.com>
Fri, 5 Dec 2014 03:23:15 +0000 (11:23 +0800)
committerEdward <edward@roojs.com>
Fri, 5 Dec 2014 03:23:15 +0000 (11:23 +0800)
Roo/bootstrap/menu/Item.js

index d39d58e..3b27a13 100644 (file)
@@ -77,7 +77,13 @@ Roo.extend(Roo.bootstrap.menu.Item, Roo.bootstrap.Component,  {
     {
         this.el.on('mouseover', this.onMouseOver, this);
         this.el.on('mouseout', this.onMouseOut, this);
-        this.el.on('click', this.onClick, this);
+        
+        if(this.submenu){
+            this.el.select('.dropdown-submenu > a', true).first().on('click', this.onClick, this);
+        }else{
+            this.el.on('click', this.onClick, this);
+        }
+        
         
     },