diff options
| author | Patrick H. Lauke <[email protected]> | 2017-01-05 09:35:43 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-01-05 09:35:43 +0000 |
| commit | 85a1fdcb29dd27803f2229d671a5e6b578d7f37e (patch) | |
| tree | bbd5294baa749c02fe8711b1e87cb472a6e45b0e /js/src | |
| parent | 0ac7eb4fe0737df385299b2f476d49d3bcc5e8a4 (diff) | |
| parent | 0463b0128286a2882f97aff34ac40298e04707bd (diff) | |
| download | bootstrap-85a1fdcb29dd27803f2229d671a5e6b578d7f37e.tar.xz bootstrap-85a1fdcb29dd27803f2229d671a5e6b578d7f37e.zip | |
Merge pull request #21093 from Johann-S/fixButtonGrpAria
Close #21090 - Fix aria-pressed attribute for buttons in container with data-attribute="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) } |
