After doing the update to Angular Material 10 I got a problem with drag&drop directive. enter
, in cdkDropList
doesn't exists anymore and so my code
this.placeholder.enter(drag, drag.element.nativeElement.offsetLeft, drag.element.nativeElement.offsetTop);
not working. I tried to find out a solution but without success. That's an example with the deprecated enter
function https://stackblitz.com/edit/angular-dragdrop-grid-pnyded
can anyone help me to fix this? Thanks a lot
I had the same problem, and fixed it with:
this.placeholder._dropListRef.enter(drag._dragRef,
drag.element.nativeElement.offsetLeft, drag.element.nativeElement.offsetTop);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With