mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
[DURACOM-237] Fix issue on drag end
This commit is contained in:
@@ -106,8 +106,8 @@ export class ChipsComponent implements OnChanges {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onDrop(event: CdkDragDrop<ChipsItem[]>) {
|
onDrop(event: CdkDragDrop<ChipsItem[]>) {
|
||||||
console.log('onDrop', event);
|
|
||||||
moveItemInArray(this.chips.chipsItems.getValue(), event.previousIndex, event.currentIndex);
|
moveItemInArray(this.chips.chipsItems.getValue(), event.previousIndex, event.currentIndex);
|
||||||
|
this.dragged = -1;
|
||||||
this.chips.updateOrder();
|
this.chips.updateOrder();
|
||||||
this.isDragging.next(false);
|
this.isDragging.next(false);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user