diff --git a/packages/calcite-components/src/components/dialog/dialog.tsx b/packages/calcite-components/src/components/dialog/dialog.tsx index 71665087c9c..f4da3a62dba 100644 --- a/packages/calcite-components/src/components/dialog/dialog.tsx +++ b/packages/calcite-components/src/components/dialog/dialog.tsx @@ -401,7 +401,13 @@ export class Dialog } private handleOpenedChange(value: boolean): void { - this.transitionEl.classList.toggle(CSS.openingActive, value); + const { transitionEl } = this; + + if (!transitionEl) { + return; + } + + transitionEl.classList.toggle(CSS.openingActive, value); onToggleOpenCloseComponent(this); }