From bb8f1c72559bd210372f5585812843968c0a0c95 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 5 Dec 2018 15:55:04 +0800 Subject: [PATCH] Roo/bootstrap/NavItem.js --- Roo/bootstrap/NavItem.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Roo/bootstrap/NavItem.js b/Roo/bootstrap/NavItem.js index 38fe3e7224..fa17071965 100644 --- a/Roo/bootstrap/NavItem.js +++ b/Roo/bootstrap/NavItem.js @@ -107,8 +107,16 @@ Roo.extend(Roo.bootstrap.NavItem, Roo.bootstrap.Component, { if (this.fa) { cfg.html = ' ' + this.html + ''; } - - + if (this.menu) { + + cfg.cn[0].html += " "; + + } + if (this.badge !== '') { + + cfg.html += ' ' + this.badge + ''; + } + return cfg; } if (this.href || this.html || this.glyphicon || this.icon || this.fa) { -- 2.39.2