diff --git a/src/main/webapp/app/module/primary/landscape-minimap/LandscapeMiniMap.component.ts b/src/main/webapp/app/module/primary/landscape-minimap/LandscapeMiniMap.component.ts index aaf0e5f9cfa..bbdb7bb237d 100644 --- a/src/main/webapp/app/module/primary/landscape-minimap/LandscapeMiniMap.component.ts +++ b/src/main/webapp/app/module/primary/landscape-minimap/LandscapeMiniMap.component.ts @@ -25,6 +25,11 @@ export default defineComponent({ const startX: Ref = ref(0); const startY: Ref = ref(0); + const observer = new MutationObserver(() => { + minimapHTML.value = removeDataSelectorAttrs(landscapeContainer.outerHTML); + }); + observer.observe(landscapeContainer, { attributes: true, childList: true, subtree: true }); + onMounted(() => { minimapHTML.value = removeDataSelectorAttrs(landscapeContainer.outerHTML);