Et2Dialog: Fix buttons could not be adopted if dialog contains only arbitrary slotted content

This commit is contained in:
nathan 2023-07-13 08:27:56 -06:00
parent 865d2b3d8d
commit 8dee34407e

View File

@ -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()