Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohann-S <johann.servoire@gmail.com>2016-11-06 16:48:55 +0300
committerJohann-S <johann.servoire@gmail.com>2017-01-04 13:02:16 +0300
commit0463b0128286a2882f97aff34ac40298e04707bd (patch)
tree59407b07f4e3a34de98555a3b894658ab3137099 /js/src/button.js
parent1b194c06607f6cc3d087d25d6d49e1698771f3a1 (diff)
Close #21090 - Fix aria-pressed attribute for buttons in container with data-toggle='buttons'
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 45e1424ffd..97ccd4bf0e 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)
}