Force change of aria-hidden when modal shows or hides
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
committed by
David Mehren
parent
bb4acb02bc
commit
61e092e8af
5
public/js/fix-aria-hidden-for-modals.js
Normal file
5
public/js/fix-aria-hidden-for-modals.js
Normal 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')
|
||||
})
|
||||
Reference in New Issue
Block a user