Force change of aria-hidden when modal shows or hides

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2022-04-03 21:36:04 +02:00 committed by David Mehren
parent bb4acb02bc
commit 61e092e8af
4 changed files with 9 additions and 0 deletions

View file

@ -0,0 +1,5 @@
$(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')
})