You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I drag an item to another grid, the ngDestroy of MuuriGridItemDirective will have a wrong MuuriGridDirective: ngOnDestroy() { this.tileGrid.removeItem(this.elRef); }
core.js:6456 ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'getItem' of null
TypeError: Cannot read property 'getItem' of null
at MuuriGridDirective.removeItem (muuri-angular.js:50)
at MuuriGridItemDirective.ngOnDestroy (muuri-angular.js:89)
If I insert an item in a grid further up in the hierarchy, it can no longer be deleted. No refresh of the MuuriGridDirectives? Angular will call ngOnDestroy before the new item is deleted.
If I drag an item to another grid, the ngDestroy of MuuriGridItemDirective will have a wrong MuuriGridDirective:
ngOnDestroy() { this.tileGrid.removeItem(this.elRef); }
Current workaround:
I change the internal tileGrid of MuuriGridItemDirective with the new target MuuriGridDirective.
The error occurs only when you leave oder change the page-routing. Only then is ngOnDestroy () called.
The text was updated successfully, but these errors were encountered: