From b61180baa69d6025b3d70f1d7ba42443e7c3cce4 Mon Sep 17 00:00:00 2001 From: karwosts <32912880+karwosts@users.noreply.github.com> Date: Sat, 17 May 2025 03:43:12 -0700 Subject: [PATCH] Don't access hidden tabs via left/right arrow (#25495) --- src/panels/lovelace/hui-root.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/panels/lovelace/hui-root.ts b/src/panels/lovelace/hui-root.ts index ce20a65c2e..d56652b3e6 100644 --- a/src/panels/lovelace/hui-root.ts +++ b/src/panels/lovelace/hui-root.ts @@ -307,18 +307,19 @@ class HUIRoot extends LitElement { view.visible === false); const tabs = html` - ${views.map( - (view, index) => html` + ${views.map((view, index) => { + const hidden = + !this._editMode && (view.subview || _isTabHiddenForUser(view)); + return html` ${this._editMode @@ -368,8 +369,8 @@ class HUIRoot extends LitElement { ` : nothing} - ` - )} + `; + })} `; return html`