How to permanently delete lines from DOM? #16
Comments
Hi @olegkorol, thank you for the report. |
Thanks for the quick response. |
Don't use email. |
It would take much time to reproduce it in jsfiddle. |
Ok 😄 |
Hi, did you solve the problem ? |
Sorry, that was a looong time ago - I do not remember anymore :( |
hi, i found a way to reproduce the bug https://jsfiddle.net/xeq7cLn4/ when we delete both the lines and their anchor, and then resize the window it gives errors |
Hi @chesiren, thank you for the comment. |
Hi,
I am trying to delete all leader-lines before unmounting a component in React.
After successfully invoking
line.remove()
and unmounting the component the lines are actually gone (they have been removed from the DOM).But on screen resize the console gets full of:
As I understand, the lines (which supposedly do not exist anymore) are trying to find out the position of their respective
start
andend
anchors (which of course do not exist anymore, since the component containing them has been unmounted).Why could this be happening?
Isn't the method
remove()
the correct way to get rid of the lines?Thanks a lot in advance!
The text was updated successfully, but these errors were encountered: