From: Alan Knowles Date: Fri, 7 May 2021 08:19:30 +0000 (+0800) Subject: roojs-bootstrap.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=71d5f06473b0449f6e24f397be1e35e279e90d19 roojs-bootstrap.js roojs-bootstrap-debug.js Roo/bootstrap/NavItem.js --- diff --git a/Roo/bootstrap/NavItem.js b/Roo/bootstrap/NavItem.js index 53484bb38f..e0ef5f64fc 100644 --- a/Roo/bootstrap/NavItem.js +++ b/Roo/bootstrap/NavItem.js @@ -167,6 +167,7 @@ Roo.extend(Roo.bootstrap.NavItem, Roo.bootstrap.Component, { var ret = Roo.bootstrap.NavItem.superclass.onRender.call(this, ct, position); this.navLink = this.el.select('.nav-link',true).first(); + this.htmlEl = this.el.select('.nav-html',true).first(); return ret; }, @@ -184,8 +185,7 @@ Roo.extend(Roo.bootstrap.NavItem, Roo.bootstrap.Component, { //if(this.tagtype == 'span'){ // this.el.select('span',true).on('click', this.onClick, this); //} - this.htmlEl = this.el.select('.nav-html',true).first(); - + // at this point parent should be available.. this.parent().register(this); },