1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-10 07:37:27 +02:00

Close #21090 - Fix aria-pressed attribute for buttons in container with data-toggle='buttons'

This commit is contained in:
Johann-S
2016-11-06 14:48:55 +01:00
parent 1b194c0660
commit 0463b01282
2 changed files with 14 additions and 3 deletions

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)
}