From 7fc2293d79825ce0cb9d861c15a704ff2da9369c Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 24 Nov 2016 14:46:39 +0800 Subject: [PATCH] Roo/bootstrap/MenuItem.js --- Roo/bootstrap/MenuItem.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) -- 2.39.2