Roo/bootstrap/MenuItem.js
authoredward <edward@roojs.com>
Fri, 29 Dec 2017 06:06:54 +0000 (14:06 +0800)
committeredward <edward@roojs.com>
Fri, 29 Dec 2017 06:06:54 +0000 (14:06 +0800)
Roo/bootstrap/MenuItem.js

index 876336e..492561f 100644 (file)
@@ -111,13 +111,14 @@ Roo.extend(Roo.bootstrap.MenuItem, Roo.bootstrap.Component,  {
     },
     onClick : function(e)
     {
+        e.stopEvent();
         Roo.log('item on click ');
         
         if(this.preventDefault){
             e.preventDefault();
         }
         
-        e.stopEvent();
+        
         //this.parent().hideMenuItems();
         
         this.fireEvent('click', this, e);