Skip to content

Commit

Permalink
Changed destroy call of elements (call destroy method in renderer ins…
Browse files Browse the repository at this point in the history
…tead of nulling the parent).
  • Loading branch information
michielvandergeest committed Feb 27, 2024
1 parent 6988362 commit bffe38f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/element.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ const Element = {
Object.values(this.scheduledTransitions).forEach((scheduledTransition) => {
clearTimeout(scheduledTransition.timeout)
})
this.node.parent = null
this.node.destroy()
},
get nodeId() {
return this.node && this.node.id
Expand Down

0 comments on commit bffe38f

Please sign in to comment.