0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-17 09:52:29 +01:00

Merge pull request #19222 from patrickhlauke/kbd-navigation-fix-checkbox-radio-toggle-port1

Focus (visually hidden) input radio/checkbox
This commit is contained in:
Patrick H. Lauke 2016-02-16 16:41:51 +00:00
commit 9e57584f7f

View File

@ -92,7 +92,10 @@ const Button = (($) => {
input.checked = !$(this._element).hasClass(ClassName.ACTIVE)
$(this._element).trigger('change')
}
$(input).trigger('focus')
}
} else {
this._element.setAttribute('aria-pressed',
!$(this._element).hasClass(ClassName.ACTIVE))