aboutsummaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2016-11-06 14:48:55 +0100
committerJohann-S <[email protected]>2017-01-04 11:02:16 +0100
commit0463b0128286a2882f97aff34ac40298e04707bd (patch)
tree59407b07f4e3a34de98555a3b894658ab3137099 /js/src
parent1b194c06607f6cc3d087d25d6d49e1698771f3a1 (diff)
downloadbootstrap-0463b0128286a2882f97aff34ac40298e04707bd.tar.xz
bootstrap-0463b0128286a2882f97aff34ac40298e04707bd.zip
Close #21090 - Fix aria-pressed attribute for buttons in container with data-toggle='buttons'
Diffstat (limited to 'js/src')
-rw-r--r--js/src/button.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/src/button.js b/js/src/button.js
index 45e1424ff..97ccd4bf0 100644
--- a/js/src/button.js
+++ b/js/src/button.js
@@ -96,11 +96,11 @@ const Button = (($) => {
input.focus()
}
- } else {
- this._element.setAttribute('aria-pressed',
- !$(this._element).hasClass(ClassName.ACTIVE))
}
+ this._element.setAttribute('aria-pressed',
+ !$(this._element).hasClass(ClassName.ACTIVE))
+
if (triggerChangeEvent) {
$(this._element).toggleClass(ClassName.ACTIVE)
}