aboutsummaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
authorGeoSot <[email protected]>2021-12-09 15:34:17 +0200
committerGitHub <[email protected]>2021-12-09 15:34:17 +0200
commitc376cb07630f49ae2bbb464925afb3a2dbc5565e (patch)
tree2a45170801ee35be0ed9350980def97e19b35626 /js/src
parent4fd5539c75515527cb1335c31bbaf76209aab296 (diff)
downloadbootstrap-c376cb07630f49ae2bbb464925afb3a2dbc5565e.tar.xz
bootstrap-c376cb07630f49ae2bbb464925afb3a2dbc5565e.zip
Dropdown: fix toggle focus after dropdown is hidden using the `ESC` button (#35500)
Diffstat (limited to 'js/src')
-rw-r--r--js/src/dropdown.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/src/dropdown.js b/js/src/dropdown.js
index 6fa3ea37a..c4e7baf29 100644
--- a/js/src/dropdown.js
+++ b/js/src/dropdown.js
@@ -434,6 +434,7 @@ class Dropdown extends BaseComponent {
if (isEscapeEvent) {
instance.hide()
+ getToggleButton.focus()
return
}