projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31784b1
)
Roo/bootstrap/NavItem.js
author
Alan Knowles
<alan@roojs.com>
Tue, 4 Dec 2018 09:32:30 +0000
(17:32 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 4 Dec 2018 09:32:30 +0000
(17:32 +0800)
Roo/bootstrap/NavItem.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/NavItem.js
b/Roo/bootstrap/NavItem.js
index
b57679f
..
c5cec6d
100644
(file)
--- 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);