From 06dc068473e5def8a1a7f10321344f6cf3b531c7 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 4 Dec 2018 17:32:30 +0800 Subject: [PATCH] Roo/bootstrap/NavItem.js --- Roo/bootstrap/NavItem.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Roo/bootstrap/NavItem.js b/Roo/bootstrap/NavItem.js index b57679f6f8..c5cec6db6a 100644 --- a/Roo/bootstrap/NavItem.js +++ b/Roo/bootstrap/NavItem.js @@ -244,8 +244,14 @@ Roo.extend(Roo.bootstrap.NavItem, Roo.bootstrap.Component, { if (!state ) { this.el.removeClass('active'); + this.navLink ? this.navLink.removeClass('active') : false; } else if (!this.el.hasClass('active')) { + this.el.addClass('active'); + if (Roo.bootstrap.version == 4) { + this.navLink ? this.navLink.addClass('active') : false; + } + } if (fire) { this.fireEvent('changed', this, state); -- 2.39.2