From 8dee34407e569ce4654db02f10b0d0e168f95465 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 13 Jul 2023 08:27:56 -0600 Subject: [PATCH] Et2Dialog: Fix buttons could not be adopted if dialog contains only arbitrary slotted content --- 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 f2c7e8c8dd..4332196d29 100644 --- a/api/js/etemplate/Et2Dialog/Et2Dialog.ts +++ b/api/js/etemplate/Et2Dialog/Et2Dialog.ts @@ -1022,7 +1022,7 @@ export class Et2Dialog extends Et2Widget(SlotMixin(SlDialog)) get _contentNode() : HTMLElement { - return this.querySelector('.dialog_content'); + return this.querySelector('.dialog_content') ?? this.querySelector("*"); } _setupMoveResize()