hedgedoc/public/js/fix-aria-hidden-for-modals.js
Tilman Vatteroth 61e092e8af Force change of aria-hidden when modal shows or hides
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-04-03 22:52:53 +02:00

5 lines
192 B
JavaScript

$(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')
})