mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-18 12:39:41 +03: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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user