From 4d31227b43e5e140c9ab7ca52e7b37a6356c5632 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 16 Apr 2024 08:49:49 -0600 Subject: [PATCH] Et2Dialog: Fix "Uncaught DOMException: Failed to set the 'adoptedStyleSheets' property on 'ShadowRoot': Sharing constructed stylesheets in multiple documents is not allowed" in long_task No idea what was happening there or why --- api/js/etemplate/Et2Dialog/Et2Dialog.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/Et2Dialog/Et2Dialog.ts b/api/js/etemplate/Et2Dialog/Et2Dialog.ts index d4e4ef4c92..86d5e3bb2a 100644 --- a/api/js/etemplate/Et2Dialog/Et2Dialog.ts +++ b/api/js/etemplate/Et2Dialog/Et2Dialog.ts @@ -1342,7 +1342,7 @@ export class Et2Dialog extends Et2Widget(SlotMixin(SlDialog)) isModal: true, buttons: buttons }); - dialog.egw().window.document.body.appendChild(dialog); + document.body.appendChild(dialog); let log = null; let progressbar = null;