Skip to content

Commit

Permalink
Merge pull request kitodo#6067 from BartChris/extend_handle_enter_key
Browse files Browse the repository at this point in the history
Disabled elements should not be focused, extends PR kitodo#6063
  • Loading branch information
solth authored May 13, 2024
2 parents 9e93112 + ca62304 commit 9d7b4b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 9d7b4b8

Please sign in to comment.