Changes to fileInput accessibility and fix to prevent jumping around the page on activation

This commit is contained in:
2026-03-05 09:18:11 +00:00
parent 2384c0284a
commit db2f16450c
5 changed files with 27 additions and 7 deletions

View File

@@ -11,4 +11,13 @@ const clearAll = function(event) {
$input.find('input[type=\"checkbox\"]').prop('checked', false);
$input.trigger('change');
return false;
};
};
const fileInputClick = function(event) {
$('#' + $(event.target).data('target')).click();
}
const fileInputKeydown = function(event) {
if (event.key == "Enter" || event.key == " ") {
event.preventDefault();
$('#' + $(event.target).data('target')).click();
}
}