diff --git a/src/panels/lovelace/hui-root.ts b/src/panels/lovelace/hui-root.ts index 7788d24116..e01f7ddfe1 100644 --- a/src/panels/lovelace/hui-root.ts +++ b/src/panels/lovelace/hui-root.ts @@ -73,6 +73,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`