hedgedoc/public/js/fix-aria-hidden-for-modals.js

6 lines
192 B
JavaScript
Raw Normal View History

$(document).on('shown.bs.modal', function (event) {
$(event.target).attr('aria-hidden', 'false')
}).on('hidden.bs.modal', function (event) {
$(event.target).attr('aria-hidden', 'true')
})