Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit c387ba5

Browse files
committed
notify parent when was moved (performance refactor) fix
1 parent 1be1ed0 commit c387ba5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/sortable.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,10 @@ angular.module('ui.sortable', [])
322322
// Save current drop position but only if this is not a second
323323
// update that happens when moving between lists because then
324324
// the value will be overwritten with the old value
325+
326+
var wasMoved = ('dropindex' in ui.item.sortable) &&
327+
!ui.item.sortable.isCanceled();
328+
325329
if(!ui.item.sortable.received) {
326330
ui.item.sortable.dropindex = getItemIndex(ui.item);
327331
var droptarget = ui.item.closest('[ui-sortable]');

0 commit comments

Comments
 (0)