Roo/bootstrap/NavItem.js
authorAlan Knowles <alan@roojs.com>
Mon, 1 Feb 2021 06:49:39 +0000 (14:49 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 1 Feb 2021 06:49:39 +0000 (14:49 +0800)
Roo/bootstrap/NavItem.js

index 1769bfc..b19a878 100644 (file)
@@ -178,7 +178,7 @@ Roo.extend(Roo.bootstrap.NavItem, Roo.bootstrap.Component,  {
             this.menu = this.addxtype(Roo.apply({}, this.menu));
         }
         
-        this.el.select('a',true).on('click', this.onClick, this);
+        this.el.select('.nav-item',true).on('click', this.onClick, this);
         
         if(this.tagtype == 'span'){
             this.el.select('span',true).on('click', this.onClick, this);