From db03783e9a6253d995feaa5888760d6f0ea64578 Mon Sep 17 00:00:00 2001 From: mcharfadi Date: Tue, 27 Aug 2024 15:13:21 +0200 Subject: [PATCH] [3878] Unmount ReactFlowProvider after layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: https://github.com/eclipse-sirius/sirius-web/issues/3878 Signed-off-by: Michaƫl Charfadi --- CHANGELOG.adoc | 1 + .../sirius-components-diagrams/src/renderer/layout/layout.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 2b8b9f53eb..e4d2edb280 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -75,6 +75,7 @@ As a result, the following maven modules have been deleted: `sirius-web-sample-a - https://github.com/eclipse-sirius/sirius-web/issues/3824[#3824] [core] Fix representation migration participant execution which was failing when there were many representation migration participant to apply. - https://github.com/eclipse-sirius/sirius-web/issues/3851[#3851] [trees] Fix an issue where the tree filters menu items were not displayed anymore after a click on the filters menu. - https://github.com/eclipse-sirius/sirius-web/issues/3849[#3849] [form] Fix the tree representation in form support the display of the same referenced element many times in the tree. +- https://github.com/eclipse-sirius/sirius-web/issues/3878[#3878] [diagram] Unmount ReactFlowProvider after layout === New Features diff --git a/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/layout/layout.tsx b/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/layout/layout.tsx index 5dcb6956cf..e5b7cb0482 100644 --- a/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/layout/layout.tsx +++ b/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/layout/layout.tsx @@ -204,6 +204,7 @@ export const prepareLayoutArea = ( export const cleanLayoutArea = (container: HTMLDivElement) => { if (container?.parentNode) { + ReactDOM.unmountComponentAtNode(container); container.parentNode.removeChild(container); } };