fix: prevent click propagation on studio wrapper

This commit is contained in:
Torsten Dittmann committed 2025-11-11 17:58:59 +04:00
1 parent 569970a808
commit b0d01e6b88
1 file changed
+7
+7
View File
@@ -158,6 +158,13 @@ export function ensureStudioComponent(): HTMLElement | null {
}
const created = document.createElement('imagine-web-components-wrapper');
created.addEventListener(
'click',
(event) => {
event.stopPropagation();
},
{ capture: true }
);
created.dataset.appwriteStudio = 'true';
ensureBaseStyles(created);
document.body.appendChild(created);