diff --git a/src/panels/lovelace/hui-root.ts b/src/panels/lovelace/hui-root.ts index 778007026251..55ebebe64050 100644 --- a/src/panels/lovelace/hui-root.ts +++ b/src/panels/lovelace/hui-root.ts @@ -71,6 +71,14 @@ class HUIRoot extends LitElement { ); } + protected firstUpdated(changedProperties: PropertyValues): void { + super.firstUpdated(changedProperties); + this.classList.toggle( + "disable-text-select", + /Chrome/.test(navigator.userAgent) && /Android/.test(navigator.userAgent) + ); + } + protected render(): TemplateResult | void { return html`