Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoSot <geo.sotis@gmail.com>2021-12-09 16:34:17 +0300
committerGitHub <noreply@github.com>2021-12-09 16:34:17 +0300
commitc376cb07630f49ae2bbb464925afb3a2dbc5565e (patch)
tree2a45170801ee35be0ed9350980def97e19b35626 /js/src/dropdown.js
parent4fd5539c75515527cb1335c31bbaf76209aab296 (diff)
Dropdown: fix toggle focus after dropdown is hidden using the `ESC` button (#35500)
Diffstat (limited to 'js/src/dropdown.js')
-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 6fa3ea37a6..c4e7baf295 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
}