[DURACOM-237] Fix issue on drag end

This commit is contained in:
Giuseppe Digilio
2024-03-29 12:47:03 +01:00
parent 1f4aca800b
commit 5dbc6ce7a8

View File

@@ -106,8 +106,8 @@ export class ChipsComponent implements OnChanges {
}
onDrop(event: CdkDragDrop<ChipsItem[]>) {
console.log('onDrop', event);
moveItemInArray(this.chips.chipsItems.getValue(), event.previousIndex, event.currentIndex);
this.dragged = -1;
this.chips.updateOrder();
this.isDragging.next(false);
}