Changes to fileInput accessibility and fix to prevent jumping around the page on activation
This commit is contained in:
2
inst/js/a11yShinyInputs.min.js
vendored
2
inst/js/a11yShinyInputs.min.js
vendored
@@ -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()}};
|
||||
Reference in New Issue
Block a user