roojs-bootstrap.js
authorAlan Knowles <alan@roojs.com>
Fri, 7 May 2021 08:19:30 +0000 (16:19 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 7 May 2021 08:19:30 +0000 (16:19 +0800)
roojs-bootstrap-debug.js
Roo/bootstrap/NavItem.js

Roo/bootstrap/NavItem.js

index 53484bb..e0ef5f6 100644 (file)
@@ -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);
     },