Roo/bootstrap/Menu.js
authorAlan Knowles <alan@roojs.com>
Wed, 28 Nov 2018 08:13:01 +0000 (16:13 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 28 Nov 2018 08:13:01 +0000 (16:13 +0800)
Roo/bootstrap/Menu.js

index d64572d..ff6fa6b 100644 (file)
@@ -142,8 +142,12 @@ Roo.extend(Roo.bootstrap.Menu, Roo.bootstrap.Component,  {
         
         this.triggerEl.on(Roo.isTouch ? 'touchstart' : 'mouseup', this.onTriggerPress, this);
         
-        this.triggerEl.addClass('dropdown-toggle');
-        
+       
+       if (this.triggerEl.hasClass('nav-item')) {
+           this.triggerEl.addClass('dropdown-toggle').select('.nav-link',true).first().addClass('nav-item');
+       } else {
+           this.triggerEl.addClass('dropdown-toggle');
+       }
         if (Roo.isTouch) {
             this.el.on('touchstart'  , this.onTouch, this);
         }