mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-05-09 12:54:42 +00: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:
commit
9e57584f7f
1 changed files with 3 additions and 0 deletions
|
|
@ -92,7 +92,10 @@ const Button = (($) => {
|
||||||
input.checked = !$(this._element).hasClass(ClassName.ACTIVE)
|
input.checked = !$(this._element).hasClass(ClassName.ACTIVE)
|
||||||
$(this._element).trigger('change')
|
$(this._element).trigger('change')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$(input).trigger('focus')
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this._element.setAttribute('aria-pressed',
|
this._element.setAttribute('aria-pressed',
|
||||||
!$(this._element).hasClass(ClassName.ACTIVE))
|
!$(this._element).hasClass(ClassName.ACTIVE))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue