mirror of https://github.com/portainer/portainer
fix(r2a): fix wizard r2a bug EE-3680 (#7241)
parent
4cc672f902
commit
23eca3ce80
|
@ -67,13 +67,7 @@ export function react2angular<T, U extends PropNames<T>[]>(
|
||||||
el
|
el
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
this.$onDestroy = () => {
|
this.$onDestroy = () => ReactDOM.unmountComponentAtNode(el);
|
||||||
// eslint-disable-next-line react/no-find-dom-node
|
|
||||||
const domNode = ReactDOM.findDOMNode(el);
|
|
||||||
if (domNode != null && domNode.parentElement != null) {
|
|
||||||
ReactDOM.unmountComponentAtNode(domNode.parentElement);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue