diff options
author | GeoSot <geo.sotis@gmail.com> | 2021-12-09 16:34:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-09 16:34:17 +0300 |
commit | c376cb07630f49ae2bbb464925afb3a2dbc5565e (patch) | |
tree | 2a45170801ee35be0ed9350980def97e19b35626 /js/src | |
parent | 4fd5539c75515527cb1335c31bbaf76209aab296 (diff) |
Dropdown: fix toggle focus after dropdown is hidden using the `ESC` button (#35500)
Diffstat (limited to 'js/src')
-rw-r--r-- | js/src/dropdown.js | 1 |
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 } |