Skip to content

Commit

Permalink
Fix drag avatar for recently changed item (#1362)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanforbes authored and edhager committed Jun 6, 2017
1 parent b5820d8 commit 3bdbc1d
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion extensions/DnD.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,11 +319,25 @@ define([
data: object,
type: type instanceof Array ? type : [type]
});

if (this.selection) {
var objectId = this.collection.getIdentity(object);
if (objectId in this.selection) {
this.dndSource._selectedNodes[objectId] = row;
}
}

return row;
},

removeRow: function (rowElement) {
this.dndSource.delItem(this.row(rowElement));
var row = this.row(rowElement);

if (this.selection && (row.id in this.selection)) {
delete this.dndSource._selectedNodes[row.id];
}

this.dndSource.delItem(row.element.id);
this.inherited(arguments);
}
});
Expand Down

0 comments on commit 3bdbc1d

Please sign in to comment.