Roo/bootstrap/MasonryBrick.js
authoredward <edward@roojs.com>
Wed, 18 Oct 2017 04:44:13 +0000 (12:44 +0800)
committeredward <edward@roojs.com>
Wed, 18 Oct 2017 04:44:13 +0000 (12:44 +0800)
Roo/bootstrap/MasonryBrick.js

index 6948ff4..5f95a4a 100644 (file)
@@ -363,8 +363,12 @@ Roo.extend(Roo.bootstrap.MasonryBrick, Roo.bootstrap.Component,  {
             }
         }
         
-        this.fireEvent('click', this);
+        if(!this.preventDefault){
+            return;
+        }
         
+        e.preventDefault();
+        this.fireEvent('click', this);
     },
     
     enter: function(e, el)