From f04557688c97e0a3360f255307e8a6eccefd4204 Mon Sep 17 00:00:00 2001 From: Petar Petrov Date: Tue, 10 Feb 2026 14:23:52 +0100 Subject: [PATCH] Use unique SVG mask IDs in graph base to fix rendering on Samsung WebView (#29525) * Use unique SVG mask IDs in graph base to fix rendering on Samsung WebView * Remove unused IDs --- src/panels/lovelace/components/hui-graph-base.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/panels/lovelace/components/hui-graph-base.ts b/src/panels/lovelace/components/hui-graph-base.ts index 089a6410d3..f008244751 100644 --- a/src/panels/lovelace/components/hui-graph-base.ts +++ b/src/panels/lovelace/components/hui-graph-base.ts @@ -13,6 +13,8 @@ export class HuiGraphBase extends LitElement { @state() private _path?: string; + private _uniqueId = `graph-${Math.random().toString(36).substring(2, 9)}`; + protected render(): TemplateResult { const width = this.clientWidth || 500; const height = this.clientHeight || width / 5; @@ -21,15 +23,15 @@ export class HuiGraphBase extends LitElement { ${this._path ? svg` - + - - + + - + ` : svg``}