diff options
| author | Johann-S <[email protected]> | 2016-11-06 14:48:55 +0100 |
|---|---|---|
| committer | Johann-S <[email protected]> | 2017-01-04 11:02:16 +0100 |
| commit | 0463b0128286a2882f97aff34ac40298e04707bd (patch) | |
| tree | 59407b07f4e3a34de98555a3b894658ab3137099 /js/src | |
| parent | 1b194c06607f6cc3d087d25d6d49e1698771f3a1 (diff) | |
| download | bootstrap-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.js | 6 |
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) } |
