Browse Source

Exit from onMove when no target is found. Fixes #2478

pull/2489/head
Artur Arseniev 6 years ago
parent
commit
ea19ee49b3
  1. 3
      src/utils/Sorter.js

3
src/utils/Sorter.js

@ -446,9 +446,10 @@ export default Backbone.View.extend({
const sourceModel = this.getSourceModel();
const dims = this.dimsFromTarget(e.target, rX, rY);
const target = this.target;
const targetModel = this.getTargetModel(target);
const targetModel = target && this.getTargetModel(target);
this.selectTargetModel(targetModel);
if (!targetModel) plh.style.display = 'none';
if (!target) return;
this.lastDims = dims;
const pos = this.findPosition(dims, rX, rY);

Loading…
Cancel
Save