Roo/bootstrap/MenuItem.js
authoredward <edward@roojs.com>
Tue, 10 Oct 2017 06:32:32 +0000 (14:32 +0800)
committeredward <edward@roojs.com>
Tue, 10 Oct 2017 06:32:32 +0000 (14:32 +0800)
Roo/bootstrap/MenuItem.js

index dfc4c0f..2c9b2fd 100644 (file)
@@ -111,9 +111,10 @@ Roo.extend(Roo.bootstrap.MenuItem, Roo.bootstrap.Component,  {
     onClick : function(e)
     {
         Roo.log('item on click ');
-        //if(this.preventDefault){
-        //    e.preventDefault();
-        //}
+        
+        if(this.preventDefault){
+            e.preventDefault();
+        }
         //this.parent().hideMenuItems();
         
         this.fireEvent('click', this, e);