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

@@ -1 +1 @@
const checkAll=function(e){e.preventDefault();e=$(e.target).closest(".shiny-input-a11ycheckboxgroup");return e.find('input[type="checkbox"]').prop("checked",!0),e.trigger("change"),!1},clearAll=function(e){e.preventDefault();e=$(e.target).closest(".shiny-input-a11ycheckboxgroup");return e.find('input[type="checkbox"]').prop("checked",!1),e.trigger("change"),!1};
const checkAll=function(t){t.preventDefault();const e=$(t.target).closest(".shiny-input-a11ycheckboxgroup");e.find('input[type="checkbox"]').prop("checked",true);e.trigger("change");return false};const clearAll=function(t){t.preventDefault();const e=$(t.target).closest(".shiny-input-a11ycheckboxgroup");e.find('input[type="checkbox"]').prop("checked",false);e.trigger("change");return false};const fileInputClick=function(t){$("#"+$(t.target).data("target")).click()};const fileInputKeydown=function(t){if(t.key=="Enter"||t.key==" "){t.preventDefault();$("#"+$(t.target).data("target")).click()}};