Roo/bootstrap/menu/Menu.js
authorEdward <edward@roojs.com>
Fri, 5 Dec 2014 03:05:11 +0000 (11:05 +0800)
committerEdward <edward@roojs.com>
Fri, 5 Dec 2014 03:05:11 +0000 (11:05 +0800)
Roo/bootstrap/menu/Menu.js

index 3c7c505..dfcc898 100644 (file)
@@ -120,10 +120,12 @@ Roo.extend(Roo.bootstrap.menu.Menu, Roo.bootstrap.Component,  {
         }
         
         this.hidden = true;
+        
         this.triggerEl = this.el.select('button.dropdown-toggle', true).first();
         this.triggerEl.on('click', this.onTriggerPress, this);
         
-        this.el.on('click', this.onClick, this);
+        this.buttonEl = this.el.select('button.dropdown-button', true).first();
+        this.buttonEl.on('click', this.onClick, this);
         
     },