Roo/bootstrap/Card.js
authorAlan Knowles <alan@roojs.com>
Tue, 17 Nov 2020 07:28:35 +0000 (15:28 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 17 Nov 2020 07:28:35 +0000 (15:28 +0800)
Roo/bootstrap/Card.js

index d524710..42fd640 100644 (file)
@@ -507,14 +507,16 @@ Roo.extend(Roo.bootstrap.Card, Roo.bootstrap.Component,  {
         // this could actually fail - if the Network drops..
         // we will ignore this at present..- client should probably reload
         // the whole set of cards if stuff like that fails.
-        if (this.fireEvent("drop", this, n, dd, e, data) === false) {
-            return false;
-        }
+        
         
         var info = this.getTargetFromEvent(e,data.source.el);
         if (info === false) {
             return false;
         }
+        
+        if (this.fireEvent("drop", this, n, dd, e, data) === false) {
+            return false;
+        }
          
         this.dropPlaceHolder('hide');