projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72b2ac2
)
Roo/bootstrap/Menu.js
author
Alan Knowles
<alan@roojs.com>
Wed, 28 Nov 2018 08:13:01 +0000
(16:13 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 28 Nov 2018 08:13:01 +0000
(16:13 +0800)
Roo/bootstrap/Menu.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Menu.js
b/Roo/bootstrap/Menu.js
index
d64572d
..
ff6fa6b
100644
(file)
--- a/
Roo/bootstrap/Menu.js
+++ b/
Roo/bootstrap/Menu.js
@@
-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);
}