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 committed by ralf
parent 3c732b9caf
commit e4b128408f

View File

@ -1004,7 +1004,7 @@ export class Et2Dialog extends Et2Widget(SlotMixin(SlDialog))
get _contentNode() : HTMLElement
{
return this.querySelector('.dialog_content');
return this.querySelector('.dialog_content') ?? this.querySelector("*");
}
_setupMoveResize()