2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-05 16:42:29 +03:00

Merge pull request #21093 from Johann-S/fixButtonGrpAria

Close #21090 - Fix aria-pressed attribute for buttons in container with data-attribute="buttons"
This commit is contained in:
Patrick H. Lauke
2017-01-05 09:35:43 +00:00
committed by GitHub
2 changed files with 14 additions and 3 deletions
+3 -3
View File
@@ -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)
}