-
-
-
+ class="${classMap({ mobile })}"
+ color-palette="${this.videoColorPalette}">
+
+
+
`;
}
- disconnectedCallback() {
- super.disconnectedCallback();
- this.removeEventListener('keydown', this.onKeydown);
- this.#triggerElement?.removeEventListener('click', this.onTriggerClick);
- }
-
@initializer()
protected async _init() {
await this.updateComplete;
@@ -207,8 +216,8 @@ export class RhDialog extends LitElement {
// This prevents background scroll
document.body.style.overflow = 'hidden';
await this.updateComplete;
- // Set the focus to the container
- this.dialog?.focus();
+ //