aboutsummaryrefslogtreecommitdiff
path: root/js/src/button.js
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2017-01-05 14:53:08 -0800
committerMark Otto <[email protected]>2017-01-05 14:53:08 -0800
commit0c12ccbeb6fdf0dd3818f97260aa43c79108d377 (patch)
tree0c0c0636c91c6ebed1b04dbe21bd00370761c501 /js/src/button.js
parent5d7db507396275fcda96935aff47b09e1d79ddc1 (diff)
parent43d9391fba015f13f06f3af4dc6f5a8205cb548b (diff)
downloadbootstrap-0c12ccbeb6fdf0dd3818f97260aa43c79108d377.tar.xz
bootstrap-0c12ccbeb6fdf0dd3818f97260aa43c79108d377.zip
Merge branch 'v4-dev' into v4-docs-streamlined
Diffstat (limited to 'js/src/button.js')
-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)
}