From b8bc15bef63fcc9899f518417835b74092d2d6aa Mon Sep 17 00:00:00 2001 From: Joseph Mory Date: Fri, 30 May 2025 20:32:47 +0800 Subject: [PATCH] luci-base: fix table option does not show in non-Bootstrap themes when it has depends Signed-off-by: Joseph Mory (cherry picked from commit 55c93e60b4e598e81eeb1774d5d83ac32b245016) --- modules/luci-base/htdocs/luci-static/resources/form.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/luci-base/htdocs/luci-static/resources/form.js b/modules/luci-base/htdocs/luci-static/resources/form.js index e5e84ec92d..2f227bdc47 100644 --- a/modules/luci-base/htdocs/luci-static/resources/form.js +++ b/modules/luci-base/htdocs/luci-static/resources/form.js @@ -3779,7 +3779,10 @@ const CBIValue = CBIAbstractValue.extend(/** @lends LuCI.form.Value.prototype */ E('div', { 'class': 'cbi-value-description' }, this.description.trim())); if (depend_list && depend_list.length) - optionEl.classList.add('hidden'); + if (in_table) + optionEl.firstChild.classList.add('hidden'); + else + optionEl.classList.add('hidden'); optionEl.addEventListener('widget-change', L.bind(this.map.checkDepends, this.map)); -- 2.30.2