mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
fix(r2a): fix wizard r2a bug EE-3680 (#7241)
This commit is contained in:
parent
4cc672f902
commit
23eca3ce80
1 changed files with 1 additions and 7 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue