From: Alan Knowles Date: Thu, 24 Nov 2016 06:46:39 +0000 (+0800) Subject: Roo/bootstrap/MenuItem.js X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=7fc2293d79825ce0cb9d861c15a704ff2da9369c;p=roojs1 Roo/bootstrap/MenuItem.js --- diff --git a/Roo/bootstrap/MenuItem.js b/Roo/bootstrap/MenuItem.js index 8ae6dd23a4..277aa63220 100644 --- a/Roo/bootstrap/MenuItem.js +++ b/Roo/bootstrap/MenuItem.js @@ -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)