Closed sebek64 closed 5 years ago
Welcome and thanks for the detailed bugreport!
Will look into it the next couple of days.
Just to add more information, I've encountered this bug with a bit different stack trace:
ERROR TypeError: Cannot read property 'removeChild' of null
at DndDropzoneDirective.push../node_modules/ngx-drag-drop/ngx-drag-drop.es5.js.DndDropzoneDirective.cleanupDragoverState (ngx-drag-drop.es5.js:713)
at DndDropzoneDirective.push../node_modules/ngx-drag-drop/ngx-drag-drop.es5.js.DndDropzoneDirective.onDrop (ngx-drag-drop.es5.js:604)
...
We have same error:
ERROR TypeError: Cannot read property 'removeChild' of null at DndDropzoneDirective.push../node_modules/ngx-drag-drop/ngx-drag-drop.es5.js.DndDropzoneDirective.ngAfterViewInit (ngx-drag-drop.es5.js:499) at callProviderLifecycles (core.js:9567) at callElementProvidersLifecycles (core.js:9541) at callLifecycleHooksChildrenFirst (core.js:9531) at checkAndUpdateView (core.js:10467) at callViewAction (core.js:10699) at execComponentViewsAction (core.js:10641) at checkAndUpdateView (core.js:10464) at callViewAction (core.js:10699) at execEmbeddedViewsAction (core.js:10662)
Everything itself looks working but error in console is scary. Angular 6, ngx-drag-drop@next
Please check out 2.0.0-rc.2
available as next
. It should fix this bug.
Thanks for fixing. I'm no longer able to reproduce this problem with rc.2.
Yes, we don't see this exception in console anymore too. Thanks!
Describe the bug Sometimes "Cannot read property 'removeChild' of null" appears in the console.
To Reproduce It is quite possible to reproduce it in official demo: https://reppners.github.io/ngx-drag-drop/ Switch to lists tab, and rapidly move elements between first two lists. Then, after a few tries, this appers in the console:
I can also reproduce the same on my project, where in devel mode, one can see a better stacktrace:
Expected behavior This error should not happen.
Desktop (please complete the following information):
I'm running the latest version: 2.0.0-rc.1.