From ca623043b50d4f40ed780fe7c0f88160cc5c03d7 Mon Sep 17 00:00:00 2001 From: BartChris Date: Fri, 10 May 2024 10:52:25 +0200 Subject: [PATCH] Disabled elements should not be focused --- Kitodo/src/main/webapp/WEB-INF/resources/js/metadata_editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kitodo/src/main/webapp/WEB-INF/resources/js/metadata_editor.js b/Kitodo/src/main/webapp/WEB-INF/resources/js/metadata_editor.js index e94ce00340a..ccd10ae33c0 100644 --- a/Kitodo/src/main/webapp/WEB-INF/resources/js/metadata_editor.js +++ b/Kitodo/src/main/webapp/WEB-INF/resources/js/metadata_editor.js @@ -30,7 +30,7 @@ metadataEditor.metadataTree = { event.preventDefault(); let form = element.form; let focusableElements = Array.from(form.elements).filter((element) => { - return element.tabIndex >= 0; + return element.tabIndex >= 0 && !element.disabled; }); let index = focusableElements.indexOf(element); let nextInput = focusableElements[index + 1];