Roo/bootstrap/MenuItem.js
authorAlan Knowles <alan@roojs.com>
Thu, 24 Nov 2016 06:46:39 +0000 (14:46 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 24 Nov 2016 06:46:39 +0000 (14:46 +0800)
Roo/bootstrap/MenuItem.js

index 8ae6dd2..277aa63 100644 (file)
@@ -73,8 +73,9 @@ Roo.extend(Roo.bootstrap.MenuItem, Roo.bootstrap.Component,  {
     },
     
     initEvents: function() {
-        
-        //this.el.select('a').on('click', this.onClick, this);
+        if (this.parent().type == 'treeview') {
+            this.el.select('a').on('click', this.onClick, this);
+        }
         
     },
     onClick : function(e)