From 0463b0128286a2882f97aff34ac40298e04707bd Mon Sep 17 00:00:00 2001 From: Johann-S Date: Sun, 6 Nov 2016 14:48:55 +0100 Subject: Close #21090 - Fix aria-pressed attribute for buttons in container with data-toggle='buttons' --- js/src/button.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js/src/button.js') 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) } -- cgit v1.2.3