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
This issue comes up when I run react testing library tests. It seems that the parent component removes react-modal I am assuming on unmount event what leads to Error: Uncaught [NotFoundError: The node to be removed is not a child of this node.]. . This issue is very similar to already raised one #769 but the corresponding PR #778 does not actually address the original issue.
If someone else experiences the similar problem then the following workaround should fix it but the warning message React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks. will be written in console.
Summary:
This issue comes up when I run react testing library tests. It seems that the parent component removes react-modal I am assuming on unmount event what leads to
Error: Uncaught [NotFoundError: The node to be removed is not a child of this node.].
. This issue is very similar to already raised one #769 but the corresponding PR #778 does not actually address the original issue.I found code which causes this issue
react-modal/src/components/Modal.js
Lines 176 to 179 in bd07d56
I will appreciate if someone comes up with a workaround.
The text was updated successfully, but these errors were encountered: