volser / cdk-drag-scroll

MIT License
31 stars 13 forks source link

ERROR TypeError: dropListRef._cacheOwnPosition is not a function - Angular 10 #23

Open daiyis opened 3 years ago

daiyis commented 3 years ago

After force upgrade to angular 10, It has the following console error when drag and drop:

core.js:4352 ERROR TypeError: dropListRef._cacheOwnPosition is not a function at cdk-drag-scroll.js:401 at ZoneDelegate.invokeTask (zone.js:407) at Object.onInvokeTask (core.js:27474) at ZoneDelegate.invokeTask (zone.js:406) at Zone.runTask (zone.js:179) at invokeTask (zone.js:488) at ZoneTask.invoke (zone.js:477) at timer (zone.js:2540)

daiyis commented 3 years ago

For whoever is still using this package, the latest angular CDK has official support for the scroll(just use cdkScrollable directive on the container) - I have removed this package from my project.

Features12 commented 3 years ago

I have the same issue. Angular 9 image