fix(r2a): fix wizard r2a bug EE-3680 (#7241)

pull/7199/head^2
Ali 2022-07-12 13:15:14 +12:00 committed by GitHub
parent 4cc672f902
commit 23eca3ce80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 7 deletions

View File

@ -67,13 +67,7 @@ export function react2angular<T, U extends PropNames<T>[]>(
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);
}
}