diff options
author | Mark Otto <markdotto@gmail.com> | 2017-01-06 01:51:14 +0300 |
---|---|---|
committer | Mark Otto <markdotto@gmail.com> | 2017-01-06 01:51:14 +0300 |
commit | 43d9391fba015f13f06f3af4dc6f5a8205cb548b (patch) | |
tree | 79b6890e3274ab3f8882e8b0684064fbe4bb9756 /dist/js/bootstrap.js | |
parent | 4d4085a59f92ed59ba3fb5e664ec6df0976b3c2e (diff) |
grunt
Diffstat (limited to 'dist/js/bootstrap.js')
-rw-r--r-- | dist/js/bootstrap.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dist/js/bootstrap.js b/dist/js/bootstrap.js index 20dcd36a07..b7e237c3ee 100644 --- a/dist/js/bootstrap.js +++ b/dist/js/bootstrap.js @@ -442,10 +442,10 @@ var Button = function ($) { 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); } |