diff options
| author | Patrick H. Lauke <[email protected]> | 2016-02-16 16:41:51 +0000 |
|---|---|---|
| committer | Patrick H. Lauke <[email protected]> | 2016-02-16 16:41:51 +0000 |
| commit | 9e57584f7f5c66ea6b2fa895068b9fc7d0e2fec0 (patch) | |
| tree | 5520c83673346269854f62404ea45bd21b21a909 | |
| parent | 9b4cfdceda2598184f6ba05ea223f5359822ffcd (diff) | |
| parent | a496cb8be4dd1ccd4610e06f425153c76defc594 (diff) | |
| download | bootstrap-9e57584f7f5c66ea6b2fa895068b9fc7d0e2fec0.tar.xz bootstrap-9e57584f7f5c66ea6b2fa895068b9fc7d0e2fec0.zip | |
Merge pull request #19222 from patrickhlauke/kbd-navigation-fix-checkbox-radio-toggle-port1
Focus (visually hidden) input radio/checkbox
| -rw-r--r-- | js/src/button.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/js/src/button.js b/js/src/button.js index 3144a3f10..adcf4c928 100644 --- a/js/src/button.js +++ b/js/src/button.js @@ -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)) |
