From ea59e9e8f0338d134254e391469eb8f244b477bf Mon Sep 17 00:00:00 2001 From: Edward Date: Fri, 5 Dec 2014 11:23:15 +0800 Subject: [PATCH] Roo/bootstrap/menu/Item.js --- Roo/bootstrap/menu/Item.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Roo/bootstrap/menu/Item.js b/Roo/bootstrap/menu/Item.js index d39d58e480..3b27a13d27 100644 --- a/Roo/bootstrap/menu/Item.js +++ b/Roo/bootstrap/menu/Item.js @@ -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); + } + }, -- 2.39.2