From 68063c2e88c7f49457976994f7fdfc401606215b Mon Sep 17 00:00:00 2001 From: Timea <4144203+timea-solid@users.noreply.github.com> Date: Mon, 9 Mar 2026 09:33:02 +0100 Subject: [PATCH 1/2] Update src/widgets/forms.js Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/widgets/forms.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/forms.js b/src/widgets/forms.js index 0cfd3994a..8abf40c69 100644 --- a/src/widgets/forms.js +++ b/src/widgets/forms.js @@ -736,7 +736,7 @@ field[ns.ui('Classifier').uri] = function ( if (selectElement && selectElement.querySelector && selectElement.querySelector('select')) { const select = selectElement.querySelector('select'); if (select && !kb.updater.editable(dataDoc.uri)) { - select.readOnly = true; + select.disabled = true; select.style = style.textInputStyleUneditable; } } From cdc173711a73f0aa7f1b6b2aa47a6667c8af9d50 Mon Sep 17 00:00:00 2001 From: Timea <4144203+timea-solid@users.noreply.github.com> Date: Mon, 9 Mar 2026 09:34:03 +0100 Subject: [PATCH 2/2] Update src/widgets/forms.js Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/widgets/forms.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/widgets/forms.js b/src/widgets/forms.js index 8abf40c69..5aef219e3 100644 --- a/src/widgets/forms.js +++ b/src/widgets/forms.js @@ -733,11 +733,13 @@ field[ns.ui('Classifier').uri] = function ( checkOptions ) // Set readonly if not editable - if (selectElement && selectElement.querySelector && selectElement.querySelector('select')) { - const select = selectElement.querySelector('select'); - if (select && !kb.updater.editable(dataDoc.uri)) { - select.disabled = true; - select.style = style.textInputStyleUneditable; + if (selectElement && selectElement.querySelectorAll) { + const selects = selectElement.querySelectorAll('select') + if (selects.length && !kb.updater.editable(dataDoc.uri)) { + selects.forEach(select => { + select.readOnly = true + select.style = style.textInputStyleUneditable + }) } } selectBox.appendChild(selectElement)