aboutsummaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
authorPatrick H. Lauke <[email protected]>2016-05-10 23:53:49 +0100
committerPatrick H. Lauke <[email protected]>2016-05-11 02:01:56 +0100
commitb107e3342a761aa94b7827436264469d5630eaec (patch)
tree4c2e9b4cfa6ef6b9dddaeca04c650c4e7431e9cc /js/src
parent5aa32b3f3ac652fd2bfa7793f38c7fda780f3e12 (diff)
downloadbootstrap-b107e3342a761aa94b7827436264469d5630eaec.tar.xz
bootstrap-b107e3342a761aa94b7827436264469d5630eaec.zip
Handle aria-hidden on modal container when showing/hiding
Fixes #19878
Diffstat (limited to 'js/src')
-rw-r--r--js/src/modal.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/src/modal.js b/js/src/modal.js
index e2365aca7..695ac569b 100644
--- a/js/src/modal.js
+++ b/js/src/modal.js
@@ -223,6 +223,7 @@ const Modal = (($) => {
}
this._element.style.display = 'block'
+ this._element.removeAttribute('aria-hidden')
this._element.scrollTop = 0
if (transition) {
@@ -290,6 +291,7 @@ const Modal = (($) => {
_hideModal() {
this._element.style.display = 'none'
+ this._element.setAttribute('aria-hidden', 'true')
this._showBackdrop(() => {
$(document.body).removeClass(ClassName.OPEN)
this._resetAdjustments()