Modal: Remove unused uui-dialog element in modal component (#21030)
refactor(backoffice): remove unused uui-dialog element in modal component Remove dead code that created an unnecessary uui-dialog element inside uui-modal-dialog. The uui-modal-dialog component already manages its own internal dialog element, making the manual creation redundant. This aligns the dialog implementation with the sidebar implementation pattern, where container elements manage their own internal structure. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -10,7 +10,6 @@ import { UmbBasicState, type UmbObserverController } from '@umbraco-cms/backoffi
|
||||
import {
|
||||
UUIModalCloseEvent,
|
||||
type UUIModalElement,
|
||||
type UUIDialogElement,
|
||||
type UUIModalDialogElement,
|
||||
type UUIModalSidebarElement,
|
||||
type UUIModalSidebarSize,
|
||||
@@ -127,8 +126,6 @@ export class UmbModalElement extends UmbLitElement {
|
||||
|
||||
#createDialogElement() {
|
||||
const modalDialogElement = document.createElement('uui-modal-dialog');
|
||||
const dialogElement: UUIDialogElement = document.createElement('uui-dialog');
|
||||
modalDialogElement.appendChild(dialogElement);
|
||||
return modalDialogElement;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user