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
When using the reroute plugin, an error is thrown when calling area.destroy(): Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
Does it make sense to have reroute-plugin try to call removeElement at all, if the area is just going to set innerHTML = ''?
Happy to submit a PR if needed, I just need a better understanding of the intended behavior.
Describe the bug
When using the reroute plugin, an error is thrown when calling
area.destroy()
:Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
The bug occurs when the reroute plugin attempts to remove the
pins
element, but by that point, the container element has already been emptiedExample to reproduce
https://codesandbox.io/p/sandbox/rete-js-v2-reroute-8doi0c?from-embed=
How to reproduce
Simply call
area.destroy()
Expected behavior
Elements from the area should be removed without error.
Dependencies
See dependencies used in linked codesandbox
Platform
No response
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: