}
var ret = Roo.bootstrap.NavItem.superclass.onRender.call(this, ct, position);
- this.navLink = this.el.select('nav-link').first();
+ this.navLink = this.el.select('.nav-link',true).first();
return ret;
},
} else if (!this.el.hasClass('active')) {
this.el.addClass('active');
- if (Roo.bootstrap.version == 4) {
- this.navLink ? this.navLink.addClass('active') : false;
+ if (Roo.bootstrap.version == 4 && this.navLink ) {
+ this.navLink.addClass('active');
}
}