I´m working in a application implementing the new drag and drop from angular material CDK and i´m trying to cancel the drag event of the element pressing Esc, i
Esc
You can move the dragged item to a position using:
event['source']['element']['nativeElement']['style']['transform'] = 'translate3d(0,0,0)'; event['source']['_dragRef']['_activeTransform'] = {x: 0, y: 0}; event['source']['_dragRef']['_passiveTransform'] = {x: 0, y: 0};