mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix: prevent click propagation on studio wrapper
This commit is contained in:
1 parent
569970a808
commit
b0d01e6b88
1 file changed
+7
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user