From 23eca3ce805f9c9a13d0c4934c84cd88699ecbe0 Mon Sep 17 00:00:00 2001 From: Ali <83188384+testA113@users.noreply.github.com> Date: Tue, 12 Jul 2022 13:15:14 +1200 Subject: [PATCH] fix(r2a): fix wizard r2a bug EE-3680 (#7241) --- app/react-tools/react2angular.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/react-tools/react2angular.tsx b/app/react-tools/react2angular.tsx index db39765e5..3baf48cb1 100644 --- a/app/react-tools/react2angular.tsx +++ b/app/react-tools/react2angular.tsx @@ -67,13 +67,7 @@ export function react2angular[]>( el ); }; - this.$onDestroy = () => { - // eslint-disable-next-line react/no-find-dom-node - const domNode = ReactDOM.findDOMNode(el); - if (domNode != null && domNode.parentElement != null) { - ReactDOM.unmountComponentAtNode(domNode.parentElement); - } - }; + this.$onDestroy = () => ReactDOM.unmountComponentAtNode(el); } }