Skip to content

Commit

Permalink
fix: Prevent memory leaks by holding on to old helper refs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jexordexan committed Feb 17, 2021
1 parent 819bd4b commit 2ef5d66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ContainerMixin.js
Expand Up @@ -430,7 +430,8 @@ export const ContainerMixin = {

const onEnd = () => {
// Remove the helper from the DOM
this.helper.parentNode.removeChild(this.helper);
this.helper.remove();
this.helper = null;

if (this.hideSortableGhost && this.sortableGhost) {
this.sortableGhost.style.visibility = '';
Expand Down

0 comments on commit 2ef5d66

Please sign in to comment.